belongsTo(Restaurant::class); } protected static function booted() { if(auth('vendor')->check()) { static::addGlobalScope(new RestaurantScope); } } }