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 website for certain users by IP address. In this case, IP blacklisting can be used to filter out malicious IP addresses...
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 to determine whether a request sent by the client has been successfully processed. This tutorial shows 2 methods how to set HTTP response status code...
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 we may need to inject the same variable in all Twig templates. It can done on each controller by passing variable to template. However, it is not good solution....
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....
Finding out which version of the Twig you have installed in Symfony framework can be useful when solving bugs or installing packages. This tutorial shows how to check Twig version...
When trying to solve bugs in application or installing PHP packages, is helpful to know which version of the Symfony framework you're using. This tutorial shows how to check Symfony version....