diff --git a/README.md b/README.md index 24eb150..f8d5552 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ # F + +# Installation +```bash +# Clone + +composer install +cp .env .env.example + +touch database/database.sqlite + +php artisan migrate --seed +``` diff --git a/routes/console.php b/routes/console.php index eff2ed2..d9245ac 100644 --- a/routes/console.php +++ b/routes/console.php @@ -1,8 +1,22 @@ comment(Inspiring::quote()); })->purpose('Display an inspiring quote')->hourly(); + +Artisan::command('create-me', function () { + User::create([ + 'first_name' => 'Nurmuhammet', + 'last_name' => 'Allanov', + 'name' => 'Nurmuhammet Allanov', + 'email' => 'nurmuhammet@mail.com', + 'email_verified_at' => now(), + 'password' => bcrypt('payload10'), + ]); + + $this->comment('Done'); +});