src/Database/Concerns/IsAbility.php
public static function createForModel($model, $attributes)
    {
        $model = static::makeForModel($model, $attributes);

        $model->save();

        return $model;
    }
public static function createForModel($model, $attributes)
    {
        $model = static::makeForModel($model, $attributes);

        $model->save();

        return $model;
    }
public static function createForModel ( $ model , $ attributes ) { $ model = static :: makeForModel ( $ model , $ attributes ) ; $ model -> save ( ) ; return $ model ; }
Create a new ability for a specific model.

@param  \Illuminate\Database\Eloquent\Model|string  $model
@param  string|array  $attributes
@return static
Create a new ability for a specific model .