Move User model to Models/

This commit is contained in:
Deon George
2021-06-29 13:18:52 +10:00
parent 8899ade36b
commit 638472fb4f
29 changed files with 94 additions and 102 deletions

View File

@@ -4,8 +4,7 @@ namespace App\Models\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\Invoice;
use App\User;
use App\Models\{Invoice,User};
class InvoicePolicy
{
@@ -14,8 +13,8 @@ class InvoicePolicy
/**
* Determine whether the user can view the service.
*
* @param \App\User $user
* @param Invoice $o
* @param User $user
* @param Invoice $o
* @return mixed
*/
public function view(User $user, Invoice $o)
@@ -33,7 +32,7 @@ class InvoicePolicy
/**
* Determine whether the user can create services.
*
* @param \App\User $user
* @param User $user
* @return mixed
*/
public function create(User $user)
@@ -44,8 +43,8 @@ class InvoicePolicy
/**
* Determine whether the user can update the service.
*
* @param \App\User $user
* @param Invoice $o
* @param User $user
* @param Invoice $o
* @return mixed
*/
public function update(User $user, Invoice $o)
@@ -56,8 +55,8 @@ class InvoicePolicy
/**
* Determine whether the user can delete the service.
*
* @param \App\User $user
* @param Invoice $o
* @param User $user
* @param Invoice $o
* @return mixed
*/
public function delete(User $user, Invoice $o)
@@ -68,8 +67,8 @@ class InvoicePolicy
/**
* Determine whether the user can restore the service.
*
* @param \App\User $user
* @param Invoice $o
* @param User $user
* @param Invoice $o
* @return mixed
*/
public function restore(User $user, Invoice $o)
@@ -80,8 +79,8 @@ class InvoicePolicy
/**
* Determine whether the user can permanently delete the service.
*
* @param \App\User $user
* @param Invoice $o
* @param User $user
* @param Invoice $o
* @return mixed
*/
public function forceDelete(User $user, Invoice $o)