By default, Laravel framework has three environments: local, production and testing. This tutorial provides 2 methods how to get environment name in Laravel 9 application.
The APP_ENV variable allows to...
Laravel framework provides hash drivers that allow to hash passwords. There can be a case when hash driver is not implemented for the required hashing algorithm.
This tutorial provides example...
For some applications, there might be a requirement to add a custom HTTP header to all the responses. It can be done by adding header on each controller method. However...
Laravel framework provides various built-in Artisan commands that can help during application development. This tutorial shows how to use Artisan command to display configured routes in Laravel 9 application.
Let's...
Laravel framework provides an Artisan command line interface which is based on Symfony Console component. By default, ANSI escape codes are used to add colors to command output. Most people...
In Laravel application, route can be defined with name. It is a unique identifier which can be used for generating URLs or redirecting to specific routes.
This tutorial provides 3...
There might be a case when URL should be defined with parameter that can contain a slash / character. It has special meaning because this character is used to separate...
In some applications are required to block access to the website for certain users by IP address. In this case, IP blacklisting can be used to filter out malicious IP...
During client and server communication, additional information to request or response can be added by using HTTP headers. This tutorial provides 2 methods how to get request header in Laravel...
HTTP response status code allows determining whether a request sent by the client has been successfully processed. This tutorial shows 2 methods how to set HTTP response status code in...