Support the ongoing development of Laravel.io →
Database Eloquent Views
Last updated 2 years ago.
0
Solution

Add :

public $incrementing = false;

to your Group model

Last updated 8 years ago.
0

You are right - thank you very much. I am curious why i didn't find it in the documentation. https://laravel.com/docs/5.2/eloquent in "Primary Keys" - section

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sixthpack sixthpack Joined 6 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.