Neuigkeiten/News/Blog-Editing und Bugfixes
This commit is contained in:
@@ -9,5 +9,8 @@ class Blog extends Model
|
||||
//
|
||||
protected $table = 'blogs';
|
||||
|
||||
|
||||
public function byUser(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo('App\Models\User', 'published_by', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user