src/Console/CleanCommand.php
protected function getUnassignedAbilitiesQuery()
    {
        $model = Models::ability();

        return $model->whereNotIn($model->getKeyName(), function ($query) {
            $query->from(Models::table('permissions'))->select('ability_id');
        });
    }
protected function getUnassignedAbilitiesQuery()
    {
        $model = Models::ability();

        return $model->whereNotIn($model->getKeyName(), function ($query) {
            $query->from(Models::table('permissions'))->select('ability_id');
        });
    }
protected function getUnassignedAbilitiesQuery ( ) { $ model = Models :: ability ( ) ; return $ model -> whereNotIn ( $ model -> getKeyName ( ) , function ( $ query ) { $ query -> from ( Models :: table ( 'permissions' ) ) -> select ( 'ability_id' ) ; } ) ; }
Get the base query for all unassigned abilities.

@return \Illuminate\Database\Eloquent\Query
Get the base query for all unassigned abilities .