Users module: accounts, groups, permissions with needs, manager:create-user
This commit is contained in:
1 parent
08289db744
commit
f86f5aea28
25 files changed
+744
-58
No files matched your search
@@ -5,9 +5,12 @@ namespace IriksIT\Manager\Tests\Fixtures;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use IriksIT\Manager\Concerns\HasManagerAccess;
|
||||
|
||||
/** Like the User of a normal app: no `hashed` cast, and no `is_super_admin` in $fillable. */
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use HasManagerAccess;
|
||||
|
||||
protected $guarded = [];
|
||||
protected $fillable = ['name', 'email', 'password'];
|
||||
|
||||
protected $hidden = ['password'];
|
||||
}
|
||||
@@ -13,6 +13,7 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user