LogisticPolicy.php 1.8 KB

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