Skip to content

Instantly share code, notes, and snippets.

@BenQoder
Created November 7, 2018 06:29
Show Gist options
  • Select an option

  • Save BenQoder/7951e3801aad90ba01c96a81a2d0242e to your computer and use it in GitHub Desktop.

Select an option

Save BenQoder/7951e3801aad90ba01c96a81a2d0242e to your computer and use it in GitHub Desktop.
Laravel Files And Directory Permission
Artisan::command("permissions", function () {
exec ("find ". base_path() ." -type d -exec chmod 0755 {} +");
exec ("find ". base_path() ." -type f -exec chmod 0644 {} +");
$this->comment("Done Setting Permisions");
})->describe("Set root permissions");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment