Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 7 |
CRAP | |
0.00% |
0 / 7 |
| LogisticPolicy | |
0.00% |
0 / 1 |
|
0.00% |
0 / 7 |
56.00 | |
0.00% |
0 / 7 |
| viewAny | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| view | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| create | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| update | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| delete | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| restore | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| forceDelete | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Policies; | |
| use App\User; | |
| use App\Logistic; | |
| use Illuminate\Auth\Access\HandlesAuthorization; | |
| class LogisticPolicy | |
| { | |
| use HandlesAuthorization; | |
| /** | |
| * Determine whether the user can view any logistics. | |
| * | |
| * @param \App\User $user | |
| * @return mixed | |
| */ | |
| public function viewAny(User $user) | |
| { | |
| } | |
| /** | |
| * Determine whether the user can view the logistic. | |
| * | |
| * @param \App\User $user | |
| * @param \App\Logistic $logistic | |
| * @return mixed | |
| */ | |
| public function view(User $user, Logistic $logistic) | |
| { | |
| } | |
| /** | |
| * Determine whether the user can create logistics. | |
| * | |
| * @param \App\User $user | |
| * @return mixed | |
| */ | |
| public function create(User $user) | |
| { | |
| } | |
| /** | |
| * Determine whether the user can update the logistic. | |
| * | |
| * @param \App\User $user | |
| * @param \App\Logistic $logistic | |
| * @return mixed | |
| */ | |
| public function update(User $user, Logistic $logistic) | |
| { | |
| // | |
| } | |
| /** | |
| * Determine whether the user can delete the logistic. | |
| * | |
| * @param \App\User $user | |
| * @param \App\Logistic $logistic | |
| * @return mixed | |
| */ | |
| public function delete(User $user, Logistic $logistic) | |
| { | |
| // | |
| } | |
| /** | |
| * Determine whether the user can restore the logistic. | |
| * | |
| * @param \App\User $user | |
| * @param \App\Logistic $logistic | |
| * @return mixed | |
| */ | |
| public function restore(User $user, Logistic $logistic) | |
| { | |
| // | |
| } | |
| /** | |
| * Determine whether the user can permanently delete the logistic. | |
| * | |
| * @param \App\User $user | |
| * @param \App\Logistic $logistic | |
| * @return mixed | |
| */ | |
| public function forceDelete(User $user, Logistic $logistic) | |
| { | |
| // | |
| } | |
| } |