mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-18 10:44:08 +00:00
Change namespace
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Policies;
|
||||
namespace InvoiceShelf\Policies;
|
||||
|
||||
use Crater\Models\Payment;
|
||||
use Crater\Models\PaymentMethod;
|
||||
use Crater\Models\User;
|
||||
use InvoiceShelf\Models\Payment;
|
||||
use InvoiceShelf\Models\PaymentMethod;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Silber\Bouncer\BouncerFacade;
|
||||
|
||||
@@ -15,7 +15,7 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function viewAny(User $user)
|
||||
@@ -30,8 +30,8 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \Crater\Models\PaymentMethod $paymentMethod
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\PaymentMethod $paymentMethod
|
||||
* @return mixed
|
||||
*/
|
||||
public function view(User $user, PaymentMethod $paymentMethod)
|
||||
@@ -46,7 +46,7 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user)
|
||||
@@ -61,8 +61,8 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \Crater\Models\PaymentMethod $paymentMethod
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\PaymentMethod $paymentMethod
|
||||
* @return mixed
|
||||
*/
|
||||
public function update(User $user, PaymentMethod $paymentMethod)
|
||||
@@ -77,8 +77,8 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \Crater\Models\PaymentMethod $paymentMethod
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\PaymentMethod $paymentMethod
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete(User $user, PaymentMethod $paymentMethod)
|
||||
@@ -93,8 +93,8 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \Crater\Models\PaymentMethod $paymentMethod
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\PaymentMethod $paymentMethod
|
||||
* @return mixed
|
||||
*/
|
||||
public function restore(User $user, PaymentMethod $paymentMethod)
|
||||
@@ -109,8 +109,8 @@ class PaymentMethodPolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \Crater\Models\User $user
|
||||
* @param \Crater\Models\PaymentMethod $paymentMethod
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\PaymentMethod $paymentMethod
|
||||
* @return mixed
|
||||
*/
|
||||
public function forceDelete(User $user, PaymentMethod $paymentMethod)
|
||||
|
||||
Reference in New Issue
Block a user