public function destroy(Model $model, DestroyModel $request)
{
//
}
public function authorize()
{
$model = Model::find($this->route('model'));
return $model && $this->user()->can('delete', $model);
}
public function delete(User $user, Model $model)
{
return $user->id === $model->user_id;
}
$model = $this->route('model');
return $model && $this->user()->can('delete', $model);