Commit c8681a1d by haojie

1

parent 3e91d2ac
......@@ -20,6 +20,7 @@
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"orangehill/iseed": "^3.0",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "00d8763531f376251ebb1101fb8e5563",
"content-hash": "1d08487fb89715f398a83b54e3ba588f",
"packages": [
{
"name": "brick/math",
......@@ -7192,6 +7192,69 @@
"time": "2023-01-03T12:54:54+00:00"
},
{
"name": "orangehill/iseed",
"version": "v3.0.3",
"source": {
"type": "git",
"url": "https://github.com/orangehill/iseed.git",
"reference": "92b98c8bda6280afa0fac016b1b49caf6f57f18d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/orangehill/iseed/zipball/92b98c8bda6280afa0fac016b1b49caf6f57f18d",
"reference": "92b98c8bda6280afa0fac016b1b49caf6f57f18d",
"shasum": ""
},
"require": {
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"php": "^7.2|^8.0.2"
},
"require-dev": {
"illuminate/filesystem": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"laravel/framework": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"mockery/mockery": "^1.0.0",
"phpunit/phpunit": "^8.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Orangehill\\Iseed\\IseedServiceProvider"
]
}
},
"autoload": {
"psr-0": {
"Orangehill\\Iseed": "src/"
},
"classmap": [
"src/Orangehill/Iseed/Exceptions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Tihomir Opacic",
"email": "tihomir.opacic@orangehilldev.com"
}
],
"description": "Generate a new Laravel database seed file based on data from the existing database table.",
"keywords": [
"artisan",
"generators",
"laravel",
"seed"
],
"support": {
"issues": "https://github.com/orangehill/iseed/issues",
"source": "https://github.com/orangehill/iseed/tree/v3.0.3"
},
"time": "2023-03-27T06:14:43+00:00"
},
{
"name": "phar-io/manifest",
"version": "2.0.3",
"source": {
......
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class AdminMenuTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('admin_menu')->delete();
\DB::table('admin_menu')->insert(array (
0 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => 'feather icon-bar-chart-2',
'id' => 1,
'order' => 1,
'parent_id' => 0,
'show' => 1,
'title' => 'Index',
'updated_at' => NULL,
'uri' => '/',
),
1 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => 'feather icon-settings',
'id' => 2,
'order' => 2,
'parent_id' => 0,
'show' => 1,
'title' => 'Admin',
'updated_at' => NULL,
'uri' => '',
),
2 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => '',
'id' => 3,
'order' => 3,
'parent_id' => 2,
'show' => 1,
'title' => 'Users',
'updated_at' => NULL,
'uri' => 'auth/users',
),
3 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => '',
'id' => 4,
'order' => 4,
'parent_id' => 2,
'show' => 1,
'title' => 'Roles',
'updated_at' => NULL,
'uri' => 'auth/roles',
),
4 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => '',
'id' => 5,
'order' => 5,
'parent_id' => 2,
'show' => 1,
'title' => 'Permission',
'updated_at' => NULL,
'uri' => 'auth/permissions',
),
5 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => '',
'id' => 6,
'order' => 6,
'parent_id' => 2,
'show' => 1,
'title' => 'Menu',
'updated_at' => NULL,
'uri' => 'auth/menu',
),
6 =>
array (
'created_at' => '2023-06-29 05:24:10',
'extension' => '',
'icon' => '',
'id' => 7,
'order' => 7,
'parent_id' => 2,
'show' => 1,
'title' => 'Extensions',
'updated_at' => NULL,
'uri' => 'auth/extensions',
),
7 =>
array (
'created_at' => '2023-06-29 05:28:05',
'extension' => '',
'icon' => 'fa-th',
'id' => 8,
'order' => 8,
'parent_id' => 0,
'show' => 1,
'title' => '设置',
'updated_at' => '2023-06-29 05:28:05',
'uri' => NULL,
),
8 =>
array (
'created_at' => '2023-06-29 05:29:12',
'extension' => '',
'icon' => NULL,
'id' => 9,
'order' => 9,
'parent_id' => 8,
'show' => 1,
'title' => '基础设置',
'updated_at' => '2023-06-29 06:04:00',
'uri' => '/config',
),
));
}
}
\ No newline at end of file
......@@ -20,5 +20,6 @@ public function run()
// 'name' => 'Test User',
// 'email' => 'test@example.com',
// ]);
$this->call(AdminMenuTableSeeder::class);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment