Create Muti-Auth in Laravel 5.2

When creating any web application, there is seldom a requirement where you only need one level of authentication. Or to be more exact where you have only one type of users. Normally we work win environment where we require an administrative user and another public user. Thus the two users may have different types of data and tables. In such we will also require two different types login processes for each user types. By default laravel ships with User auth model. So how doe we add another authentication model to the system.

(more…)

Read More

Enable Php to display errors on ubuntu.

If you have freshly install ubuntu 16.04 or any version of ubuntu, and then installed fresh apache and php into the system then lets be frank, the error reporting has been turned off by default.

Then the first thing that we do is start our terminal type in php –ini and search for the php.ini file which tells us to be /etc/php/7.0/cli/php.ini and edit the ini file to display_errors. Then we restart the apache server.

But wait! did that solve the issue.

(more…)

Read More