Skip to content

Instantly share code, notes, and snippets.

@cjlaborde
Last active February 29, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjlaborde/5588991be303d545bf200c24bb82c524 to your computer and use it in GitHub Desktop.
Save cjlaborde/5588991be303d545bf200c24bb82c524 to your computer and use it in GitHub Desktop.
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