Skip to main content
lagbox's user avatar
lagbox's user avatar
lagbox's user avatar
lagbox
  • Member for 11 years, 7 months
  • Last seen more than a month ago
Stats
50,078
reputation
0
reached
0
answers
0
questions
Loading…
About

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
This user doesn’t have any gold badges yet.
11
silver badges
3
bronze badges
Posts

This user hasn’t posted yet.