Last active
August 29, 2015 14:23
-
-
Save Shaltz/38d5570538967bf13a23 to your computer and use it in GitHub Desktop.
Laravel TIPS & TRICKS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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