src/Database/Models/Traits/BoundToApplication.php
/**
     * Adds application_id global scope filter to model.
     */
Adds application_id global scope filter to model.
Adds application_id global scope filter to model .
public static function bootBoundToApplication()
    {
        static::addGlobalScope('in-application', function (Builder $builder) {
            return $builder->where('application_id', '=', app('soda')->getApplication()->getKey());
        });
    }
public static function bootBoundToApplication ( ) { static :: addGlobalScope ( 'in-application' , function ( Builder $ builder ) { return $ builder -> where ( 'application_id' , '=' , app ( 'soda' ) -> getApplication ( ) -> getKey ( ) ) ; } ) ; }
Adds application_id global scope filter to model.
Adds application_id global scope filter to model .