Posted in Laravel

Securely setting file permissions for Laravel Framework

After developing the application locally, when the application is moved to production, people find that web page fails to display the content. This may be due to proper file permissions. Some simply gives complete read, write and execute permission for files and directories like this:

sudo chmod -R 777 path/to/root

which is a serious security concern. Follow these steps to securely grant permissions to your files:

Continue reading “Securely setting file permissions for Laravel Framework”

Posted in Laravel

Add multiple contents to @yield from @section

Sometimes, we may extend/include more than one template inside a layout. When we need to define a section of content in a single yield, it perfectly does its job. But when there is a situation that needs to include multiple sections inside a single yield, the first section is overridden by the next section resulting in displaying only the last section in the yield directive.

Continue reading “Add multiple contents to @yield from @section”