Laravel Error Illuminate\Support\Manager::createDriver()

Laravel Error Illuminate\Support\Manager::createDriver()

I just got error in my laravel project, and the error was Illuminate\Support\Manager::createDriver(). I was able to solve this problem, so i want to share it here, in case someone else had the same error.

Laravel 5.5 error No application encryption key has been specified.

Laravel 5.5 error No application encryption key has been specified.

This morning when i clone one of repository on my github (this repo is based on laravel 5.5) to another computer, i got an error RuntimeException No application encryption key has been specified. How to solve this problem?

Laravel could not be opened: failed to open stream: Permission denied

Laravel could not be opened: failed to open stream: Permission denied

When you first setup a laravel project, you might encounter this error 'could not be opened: failed to open stream: Permission denied' or 'PHP Fatal error: Uncaught UnexpectedValueException: The stream or file'.

Laravel eloquent relationships


In laravel you can define all kind of relationships between database tables on the model itself (as in laravel, model is representation of database table), so here's list of eloquent relationships that you can use in laravel model.

Insert using DB table doesnt update timestamp


In laravel there are two ways to insert data/record, using DB table or using model, but i found a problem when inserting the data using DB table, the timestamp created_at and updated_at is showing '0000-00-00 00:00:00' as value.

Category

Category