Category: Laravel

How to run artisan command in shared hosting from route or controller

Laravel is the most modern and popular framework in PHP. One of the most powerful tools in Laravel is artisan command. Most of the time we host our site in shared server and most of the shared server does not support or provide command line interface. So what to do if we need to run artisan command. Here is how we can do it easily in Laravel from route. We will use the call method on the Artisan facade to run command.

Laravel 5.2 – How to access image from storage folder

Laravel provides a powerful filesystem. Using filesystem you can easily upload files and make it private so user cannot download it directly.

But if you want to provide public URL then there is some way to do it.

Laravel 5.2: How to enable multi session per user in Sentry 2

If you are using Sentry 2 with your favourite Laravel framework then might have a single session per user which is security features. But you may need multi sessions per user. Say you have one account to allow to moderate content in your website from admin panel. And you don’t want to create multiple user … Continue reading