menu table add
This commit is contained in:
parent
65cd4ee79a
commit
8844463d77
35
_migrations/menuMigration.php
Normal file
35
_migrations/menuMigration.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace _migrations;
|
||||
|
||||
use Illuminate\Database\Capsule\Manager;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class menuMigration extends Migration
|
||||
{
|
||||
public static function up(): void
|
||||
{
|
||||
Manager::schema()->create('menu', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('parent_id')->default(1);
|
||||
$table->string('icon_file', 255)->nullable(false);
|
||||
$table->string('icon_font', 255);
|
||||
$table->string('label', 255);
|
||||
$table->string('url', 255);
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function down(): void
|
||||
{
|
||||
Manager::schema()->dropIfExists('menu');
|
||||
}
|
||||
}
|
||||
}
|
25
composer.json
Normal file
25
composer.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "illuminate-example/eloquent",
|
||||
"description": "Implementation of Database Queries with illuminate and Eloquent",
|
||||
"type": "project",
|
||||
"require": {
|
||||
"illuminate/database": "^11.14",
|
||||
"illuminate/filesystem": "^11.18.1",
|
||||
"craft-group/phroute": "^2.1",
|
||||
"vlucas/phpdotenv": "^5.6",
|
||||
"twig/twig": "^3.0",
|
||||
"twbs/bootstrap": "5.0.2",
|
||||
"itguild/tables": "^1.0",
|
||||
"madesimple/php-form-validator": "^2.9",
|
||||
"itguild/forms": "^0.1.1",
|
||||
"samejack/php-argv": "dev-master",
|
||||
"itguild/eloquent-table": "^0.4.1"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"app\\": "app/",
|
||||
"migrations\\": "migrations/",
|
||||
"kernel\\": "kernel/"
|
||||
}
|
||||
}
|
||||
}
|
2499
composer.lock
generated
Normal file
2499
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user