Support the ongoing development of Laravel.io →
posted 9 years ago
Eloquent
Last updated 2 years ago.
0

Shouldn't it be

parent::__construct($attributes);

?

0

Thanks! It works! (it looks so obvious now, that I think I must visit an ophthalmologist...)

0

And how do I get a record? These don't work:

$t=$myTeam ->find($id); 
$t=$myTeam ::find($id);

Maybe I'm doing it the wrong way.

What I want to do is change table of a Model, dynamically.

Is this the correct way?

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

panosss panosss Joined 18 Jan 2015

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.