/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); \Bloglyzer\Models\User::create(['name' => 'Blogi Analüüsija']); Model::reguard(); }
public function doLogin() { $password = \Input::get('password'); if ($password == env('ACCESS_PASSWORD')) { $user = \Bloglyzer\Models\User::first(); \Auth::LoginUsingId($user->id, true); return \Redirect::to('/'); } }