Skip to content

Instantly share code, notes, and snippets.

@Shaltz
Last active August 29, 2015 14:23
Show Gist options
  • Save Shaltz/38d5570538967bf13a23 to your computer and use it in GitHub Desktop.
Save Shaltz/38d5570538967bf13a23 to your computer and use it in GitHub Desktop.
Laravel TIPS & TRICKS
to setup an Ubuntu Apache server to work properly with Laravel :
1) Enable mod_rewrite on the apache server: sudo a2enmod rewrite
2) edit /etc/apache2/apache2.conf, changing the "AllowOverride None" directive for "/var/www" to "AllowOverride All"
Then restart the Apache server: service apache2 restart
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- to start a new project :
composer create-project laravel/laravel --prefer-dist projectName
<<<
- to create a new middleware :
php artisan make:middleware middlewareName
<<<
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment