/** * Run the migrations. * * @return void */ public function up() { Schema::create('admins', function ($table) { $table->increments('id'); $table->string('username'); $table->string('password'); $table->string('name'); $table->string('remember_token'); $table->timestamps(); }); \LevApp\Models\Admin::create(['username' => '*****@*****.**', 'password' => bcrypt('test')]); }
public function index() { \LevApp\Models\Admin::create(['username' => '*****@*****.**', 'password' => Hash::make('test')]); return view('admin::login'); }