You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class State extends Model {
use Cacheable;
protected$cacheBusting = true;
protected$table = 'states';
protected$fillable = [ 'country_id','name'];
public$timestamps = false;
publicstaticfunctionregister(array$attribute)
{
returnnewstatic($attribute);
}
}
Gives me the following error.
App\State and App\Traits\Cacheable define the same property ($cacheBusting) in the composition of App\State. However, the definition differs and is considered incompatible. Class was composed
I forgot to mention that to test out the code, I copied the individual files into my project instead of installing through composer. Does this make any difference?
Activity
SimplyCorey commentedon Dec 20, 2016
Can I see your model please?
Just a quick note -- I haven't finished testing this package yet. I plan on finishing up testing over the next few days and then releasing 1.0
ebernie commentedon Dec 20, 2016
Here you go.
Gives me the following error.
I forgot to mention that to test out the code, I copied the individual files into my project instead of installing through composer. Does this make any difference?
SimplyCorey commentedon Dec 20, 2016
Fixed in latest master.