Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Sunday, January 21, 2018

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 RuntimeExce...

Friday, May 5, 2017

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 d...

Wednesday, May 3, 2017

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 t...

Tuesday, May 2, 2017

How to add primary key to Laravel model?

If you did not specify primary key in your model, laravel will assume the primary key of the table is 'id', so for example your prim...

Sunday, April 23, 2017

Laravel query builder example

Instead of hand coding SQL code on your application, you should try to use query builder in laravel, in this article i will show some of the...

Mass assignment technique in Laravel

When you learn about laravel, you probably heard about mass assignment, what does it mean? what exactly is mass assignment? should you care ...