Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of lagbox

lagbox

lagbox has asked 0 questions and find answers to 59 problems.

Stats

2.7k
EtPoint
1.1k
Vote count
0
questions
59
answers

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