snapshot of https://github.com/krayin/laravel-crm.git (2.2, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s

This commit is contained in:
upstream-mirror
2026-09-18 04:37:41 +05:00
commit 135ffdb085
1274 changed files with 144880 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace Webkul\Installer\Database\Seeders\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @param array $parameters
* @return void
*/
public function run($parameters = [])
{
$this->call(RoleSeeder::class, false, ['parameters' => $parameters]);
$this->call(UserSeeder::class, false, ['parameters' => $parameters]);
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Webkul\Installer\Database\Seeders\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class RoleSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @param array $parameters
* @return void
*/
public function run($parameters = [])
{
DB::table('users')->delete();
DB::table('roles')->delete();
$defaultLocale = $parameters['locale'] ?? config('app.locale');
DB::table('roles')->insert([
'id' => 1,
'name' => trans('installer::app.seeders.user.role.administrator', [], $defaultLocale),
'description' => trans('installer::app.seeders.user.role.administrator-role', [], $defaultLocale),
'permission_type' => 'all',
]);
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace Webkul\Installer\Database\Seeders\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
class UserSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @param array $parameters
* @return void
*/
public function run($parameters = [])
{
DB::table('users')->delete();
DB::table('users')->insert([
'id' => 1,
'name' => 'Example Admin',
'email' => 'admin@example.com',
'password' => bcrypt('admin123'),
// 'api_token' => Str::random(80),
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s'),
'status' => 1,
'role_id' => 1,
'view_permission' => 'global',
]);
}
}