I am using laravel latest version, i have build a relation with User and Division models
public function user()
{
return $this->hasMany('AppmodelsUser', 'id');
}
public function division()
{
return $this->belongsTo('AppmodelsDivision', 'division_id');
}
And in blade view
class="">Division</td>
<td class="">:</td>
<td class="">{{Auth::user()->division == null ? 'Not define' : Auth::user()->division->name}}
Local server working good, but live server showing error
Class 'AppmodelsUnioun' not found