Няма описание

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. namespace App\Policies;
  3. use App\User;
  4. use Illuminate\Auth\Access\HandlesAuthorization;
  5. class UserPolicy
  6. {
  7. use HandlesAuthorization;
  8. /**
  9. * Determine whether the user can view any models.
  10. *
  11. * @param \App\User $user
  12. * @return mixed
  13. */
  14. public function viewAny(User $user)
  15. {
  16. //
  17. }
  18. /**
  19. * Determine whether the user can view the model.
  20. *
  21. * @param \App\User $user
  22. * @param \App\User $model
  23. * @return mixed
  24. */
  25. public function view(User $user, User $model)
  26. {
  27. //
  28. }
  29. /**
  30. * Determine whether the user can create models.
  31. *
  32. * @param \App\User $user
  33. * @return mixed
  34. */
  35. public function create(User $user)
  36. {
  37. //
  38. }
  39. /**
  40. * Determine whether the user can update the model.
  41. *
  42. * @param \App\User $user
  43. * @param \App\User $model
  44. * @return mixed
  45. */
  46. public function update(User $user, User $model)
  47. {
  48. //
  49. }
  50. /**
  51. * Determine whether the user can delete the model.
  52. *
  53. * @param \App\User $user
  54. * @param \App\User $model
  55. * @return mixed
  56. */
  57. public function delete(User $user, User $model)
  58. {
  59. //
  60. }
  61. /**
  62. * Determine whether the user can restore the model.
  63. *
  64. * @param \App\User $user
  65. * @param \App\User $model
  66. * @return mixed
  67. */
  68. public function restore(User $user, User $model)
  69. {
  70. //
  71. }
  72. /**
  73. * Determine whether the user can permanently delete the model.
  74. *
  75. * @param \App\User $user
  76. * @param \App\User $model
  77. * @return mixed
  78. */
  79. public function forceDelete(User $user, User $model)
  80. {
  81. //
  82. }
  83. }