mardi 4 avril 2017

Sleeping Owl Laravel Exception: Method Illuminate\View\View::__toString() must not throw an exception

I create a model through a service provider

AdminColumn::lists('type.name', 'Championship type')

In my model ChampionshipTypes i have relationship

public function championship(){
    return $this->hasMany('App\Models\Championship', 'type_enum_id');
}

And in model Championship

public function type(){
    return $this->belongsTo('App\Models\Enum\EnumChampionshipType', 'id');
}

When i try load page - Exception Throw

FatalErrorException in 74d7252e8b7d20fd1a1f60d84c0c0621d05358d4.php line 0: Method Illuminate\View\View::__toString() must not throw an exception



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire