Skip to content

Commit e6c2b1b

Browse files
committed
add role and membership models
1 parent b5d3e25 commit e6c2b1b

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

app/Models/Membership.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace App\Models;
4+
5+
use Laravel\Jetstream\Membership as JetstreamMembership;
6+
7+
class Membership extends JetstreamMembership
8+
{
9+
/**
10+
* Indicates if the IDs are auto-incrementing.
11+
*
12+
* @var bool
13+
*/
14+
public $incrementing = true;
15+
}

app/Models/Role.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\Models;
6+
7+
use Spatie\Permission\Models\Role as SpatieRole;
8+
9+
class Role extends SpatieRole
10+
{
11+
//
12+
}

0 commit comments

Comments
 (0)