Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

21 lines (17 sloc) 424 Bytes
<?php
/**
* Copyright (C) 1997-2018 Reyesoft <info@reyesoft.com>.
*
* This file is part of JsonApiPlayground. JsonApiPlayground can not be copied and/or
* distributed without the express permission of Reyesoft
*/
declare(strict_types=1);
namespace App;
use Reyesoft\JsonApi\Policy;
class AuthorPolicy extends Policy
{
public function modelDelete($builder): bool
{
return $builder->id !== 1;
}
}
You can’t perform that action at this time.