Change namespace

This commit is contained in:
Darko Gjorgjijoski
2024-01-27 23:53:20 +01:00
parent aef8b228b8
commit 6b80b5f48d
550 changed files with 3398 additions and 3278 deletions

View File

@@ -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)