Created
June 6, 2019 09:55
-
-
Save NAKKA-K/252db15d1fc95936be53f4146e5e8587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Policies; | |
use App\User; | |
use App\UserBook; | |
use Illuminate\Auth\Access\HandlesAuthorization; | |
class UserBookPolicy | |
{ | |
use HandlesAuthorization; | |
/** | |
* Determine whether the user can view the user book. | |
* | |
* @param \App\User $user | |
* @param \App\UserBook $userBook | |
* @return mixed | |
*/ | |
public function view(User $user, UserBook $userBook) | |
{ | |
// | |
} | |
/** | |
* Determine whether the user can create user books. | |
* | |
* @param \App\User $user | |
* @return mixed | |
*/ | |
public function create(User $user) | |
{ | |
// | |
} | |
/** | |
* Determine whether the user can update the user book. | |
* | |
* @param \App\User $user | |
* @param \App\UserBook $userBook | |
* @return mixed | |
*/ | |
public function update(User $user, UserBook $userBook) | |
{ | |
// | |
} | |
/** | |
* Determine whether the user can delete the user book. | |
* | |
* @param \App\User $user | |
* @param \App\UserBook $userBook | |
* @return mixed | |
*/ | |
public function delete(User $user, UserBook $userBook) | |
{ | |
// | |
} | |
/** | |
* Determine whether the user can restore the user book. | |
* | |
* @param \App\User $user | |
* @param \App\UserBook $userBook | |
* @return mixed | |
*/ | |
public function restore(User $user, UserBook $userBook) | |
{ | |
// | |
} | |
/** | |
* Determine whether the user can permanently delete the user book. | |
* | |
* @param \App\User $user | |
* @param \App\UserBook $userBook | |
* @return mixed | |
*/ | |
public function forceDelete(User $user, UserBook $userBook) | |
{ | |
// | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment