芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Policies/PaymentMethodPolicy.php
<?php namespace App\Policies; use App\Helpers\Authorize; use App\Models\PaymentMethod; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class PaymentMethodPolicy { use HandlesAuthorization; /** * Determine whether the user can view payment_methods. * * @param \App\Models\User $user * @return mixed */ public function index(User $user) { return (new Authorize($user, 'view_payment_method'))->check(); } /** * Determine whether the user can view the PaymentMethod. * * @param \App\Models\User $user * @param \App\Models\PaymentMethod $paymentMethod * @return mixed */ public function view(User $user, PaymentMethod $paymentMethod) { return (new Authorize($user, 'view_payment_method', $paymentMethod))->check(); } /** * Determine whether the user can create PaymentMethods. * * @param \App\Models\User $user * @return mixed */ public function create(User $user) { return (new Authorize($user, 'add_payment_method'))->check(); } /** * Determine whether the user can update the PaymentMethod. * * @param \App\Models\User $user * @param \App\Models\PaymentMethod $paymentMethod * @return mixed */ public function update(User $user, PaymentMethod $paymentMethod) { return (new Authorize($user, 'edit_payment_method', $paymentMethod))->check(); } /** * Determine whether the user can delete the PaymentMethod. * * @param \App\Models\User $user * @param \App\Models\PaymentMethod $paymentMethod * @return mixed */ public function delete(User $user, PaymentMethod $paymentMethod) { return (new Authorize($user, 'delete_payment_method', $paymentMethod))->check(); } }
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage