changes to sms packages and option to create user
This commit is contained in:
@@ -7,11 +7,13 @@
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Queue;
|
||||
|
||||
function adminUserSecurity(): User {
|
||||
function adminUserSecurity(): User
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
$role = Role::firstOrCreate(['slug' => 'admin'], ['name' => 'Admin']);
|
||||
Permission::firstOrCreate(['slug' => 'manage-settings'], ['name' => 'Manage Settings']);
|
||||
$user->roles()->syncWithoutDetaching([$role->id]);
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user