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...
In Laravel application, we can return an HTTP response in JSON format. During development can be useful to return formatted JSON that can be much easier to read when debugging...
There might be a case, where we need to set the default time zone in application which will be used by date and time functions. This tutorial provides example how...
Sometimes you may need to check which version of the Laravel framework you're using. It can be useful when installing PHP packages. This tutorial shows how to check Laravel version...
There are various ways to authenticate an API user in Laravel application. API authentication can be implemented using Laravel Passport, Laravel Sanctum, etc. External packages offer great features, but there...
Laravel provides various Artisan commands under the make: namespace which allows creating empty controllers, models, listeners, providers and many other types of classes. This means that we don't need to...