From f1e9d46d4b74cfca5f01b94af6cb4e87791420eb Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Wed, 26 Mar 2025 18:50:10 +0500 Subject: [PATCH] add create-me command --- README.md | 12 ++++++++++++ routes/console.php | 14 ++++++++++++++ 2 files changed, 26 insertions(+) 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'); +});