Skip to content

Commit

Permalink
Fixed namespaces paths
Browse files Browse the repository at this point in the history
  • Loading branch information
brand committed Apr 24, 2024
1 parent 772ed52 commit 96b7e08
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/Models/Admin.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace app\Models;
namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace app\Models;
namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
Expand Down
6 changes: 3 additions & 3 deletions app/Nova/Admin.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace app\Nova;
namespace App\Nova;

use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rules;
Expand All @@ -18,9 +18,9 @@ class Admin extends Resource
/**
* The model the resource corresponds to.
*
* @var class-string<\app\Models\Admin>
* @var class-string<\App\Models\Admin>
*/
public static $model = \app\Models\Admin::class;
public static $model = \App\Models\Admin::class;

/**
* The single value that should be used to represent the resource when being displayed.
Expand Down
6 changes: 3 additions & 3 deletions app/Nova/User.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace app\Nova;
namespace App\Nova;

use Illuminate\Validation\Rules;
use Laravel\Nova\Fields\Gravatar;
Expand All @@ -15,9 +15,9 @@ class User extends Resource
/**
* The model the resource corresponds to.
*
* @var class-string<\app\Models\User>
* @var class-string<\App\Models\User>
*/
public static $model = \app\Models\User::class;
public static $model = \App\Models\User::class;

/**
* The single value that should be used to represent the resource when being displayed.
Expand Down
4 changes: 2 additions & 2 deletions app/Policies/AdminPolicy.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace app\Policies;
namespace App\Policies;

use app\Models\User as Admin;
use App\Models\User as Admin;

class AdminPolicy
{
Expand Down
4 changes: 2 additions & 2 deletions app/Policies/CorePermissions.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace app\Policies;
namespace App\Policies;

use app\Models\User as Admin;
use App\Models\User as Admin;
use Illuminate\Support\Facades\Auth;

class CorePermissions
Expand Down
4 changes: 2 additions & 2 deletions app/Policies/UserPolicy.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace app\Policies;
namespace App\Policies;

use app\Nova\User;
use App\Nova\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class UserPolicy extends CorePermissions
Expand Down

0 comments on commit 96b7e08

Please sign in to comment.