Laravel Cheat Sheet

Some things I do frequently ...

Create a New Laravel Project

I must already have write access to the directory in which I am creating the Laravel project. Then ...

cd /www
composer create-project laravel/laravel PROJECT
sudo chown -R apache storage
sudo chcon -R -t httpd_sys_rw_content_t storage

Then I define the VirtualHost entry for the site, setting DocumentRoot to the public directory within the project:

DocumentRoot /www/PROJECT/public