By day: Developer, By night: ... who am I kidding, Developer
Laravel
$request->input(...)
Do not use $request->get(...)
... the method to get inputs from the Request is input(...)
. Laravel added this method for very particular methods and you will eventually run into the reason why this is important if you keep using get
. [You will never see the get
method used on a Request in any Laravel documentation]
artisan cache:clear
Do not tell people to run this command for no reason. This is not the equivalent of ALT+CLTR+DELETE. This command clears your application CACHE STORE. All the things you specifically cache in your application code are in there. The route/view/config cache have nothing to do with this cache store.
Route/Config Caching
There is no need to cache your routes or configuration while you are in development. Keep them uncached so you don't have to keep recaching them:
php artisan route:clear
php artisan config:clear
-
Yearling
× 11Feb 25
-
CriticJan 26, 2021
-
SupporterJan 16, 2016
-
AutobiographerApr 15, 2015
This user hasn’t posted yet.