command->error("Users already exist! This seeder can only be run once."); return; } $user = User::create([ 'name' => 'Crawlshot API User', 'email' => 'api@crawlshot.test', 'password' => bcrypt('password') ]); $token = $user->createToken('crawlshot-api')->plainTextToken; $this->command->info("User created: {$user->email}"); $this->command->info("API Token: {$token}"); $this->command->line("Use this token in Authorization header: Bearer {$token}"); } }