laravel tips Laravel Route::redirect tip Did you know? You can quickly define a redirect route using Route::redirect('from', 'to') without defining a full route or controller for performing a simple redirect. You can customize the status code returned using the optional third parameter e.g 301 for permanent redirects. Or
laravel tips Laravel config:cache tip Did you know? If you've cached your laravel configuration files with $ php artisan config:cache, env() function calls from everywhere except the config files will return null. Loose recommendation: avoid using env() anywhere in your application as this will give you headaches when you're running in
laravel tips Laravel Route::view tip Did you know? If your route or controller method needs to return a view. You can use Route::view('uri', 'view.name') instead of defining a full route and controller method for returning a simple view. This is particularly useful for static pages like the about,