Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit 3eb8ecb

Browse files
committed
feat: add Laravel 13 support
1 parent f6cbc14 commit 3eb8ecb

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
],
2222
"require": {
2323
"php": "^8.2|^8.3|^8.4|^8.5",
24-
"illuminate/contracts": "^10.0|^11.0|^12.0",
25-
"illuminate/database": "^10.0|^11.0|^12.0",
26-
"illuminate/support": "^10.0|^11.0|^12.0"
24+
"illuminate/contracts": "^10.0|^11.0|^12.0|^13.0",
25+
"illuminate/database": "^10.0|^11.0|^12.0|^13.0",
26+
"illuminate/support": "^10.0|^11.0|^12.0|^13.0"
2727
},
2828
"require-dev": {
2929
"driftingly/rector-laravel": "^1.0|^2.0",
3030
"larastan/larastan": "^2.0|^3.0",
3131
"laravel/pint": "^1.0",
32-
"orchestra/testbench": "^8.0|^9.0|^10.0",
32+
"orchestra/testbench": "^8.0|^9.0|^10.0|^11.0",
3333
"pestphp/pest": "^2.0|^3.0|^4.0",
3434
"pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0"
3535
},

config/guard.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
declare(strict_types=1);
44

5+
use AmdadulHaq\Guard\Models\Permission;
6+
use AmdadulHaq\Guard\Models\Role;
7+
use App\Models\User;
8+
59
return [
610
/*
711
|--------------------------------------------------------------------------
@@ -27,9 +31,9 @@
2731
*/
2832

2933
'models' => [
30-
'user' => \App\Models\User::class,
31-
'role' => \AmdadulHaq\Guard\Models\Role::class,
32-
'permission' => \AmdadulHaq\Guard\Models\Permission::class,
34+
'user' => User::class,
35+
'role' => Role::class,
36+
'permission' => Permission::class,
3337
],
3438

3539
/*

0 commit comments

Comments
 (0)