Last active
February 29, 2020 18:49
-
-
Save cjlaborde/5588991be303d545bf200c24bb82c524 to your computer and use it in GitHub Desktop.
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
php artisan make:model Foo -mcr | |
### Debug commands | |
php artisan package:discover | |
`php artisan route:clear` | |
`php artisan cache:clear` | |
`php artisan config:clear` | |
`php artisan view:clear` | |
`composer dump-autoload -o` | |
deleted manually bootstrap>cache>packages.php and services.php | |
# Get all lists so you can check were they connect at. | |
php artisan route:list | |
### Laravel Valet | |
If you recently updated brew (brew upgrade), then your Laravel Valet has obviously broken, due to updating PHP to version 7.4. | |
You can fix it this way: | |
1) Globally update Composer: composer global update | |
2) Reinstall Valet: valet install | |
3) Make sure that Valet uses PHP 7.4: valet use php@7.4 | |
After that, everything worked for me. If you do not have: | |
4) Do: brew upgrade nginx dnsmasq | |
5) Make sure that PHP 7.4 is used: php -v if the previous version is displayed: brew unlink php@7.2 | |
### Find php.ini file location | |
{{ print_r(php_ini_loaded_file()) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment