laravel-admin 笔记

自动创建数据库

php artisan make:model User -crm
同时创建

修改  ./database/migrations/  下数据文件

   public function up()
    {
        Schema::create('columns', function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('name')->nullable();
            $table->string('url')->nullable();
            $table->text('intr');
            $table->string('otherauthor');
            $table->integer('copyinfo');
            $table->timestamps();
        });
    }

执行  php artisan migrate

自动生成Admin管理页面

php artisan admin:make UserController –model App\\Models\\User