belongsTo(User::class, 'user'); } public function scopeNextFilm($query) { return $query->where('key', 'nextfilm'); } }