From bf607d18487e95edba64470d2c5705e0d7973436 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Sun, 17 Nov 2024 14:51:04 +0200 Subject: [PATCH 01/12] Init --- resources/views/welcome.blade.php | 94 +------------------------------ 1 file changed, 2 insertions(+), 92 deletions(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index af1c02a70..0b61e44c7 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,99 +1,9 @@ - - - - Laravel - - - - - - + Volodymyr Ponomarenko -
- @if (Route::has('login')) - - @endif - -
-
- Laravel -
- - -
-
+

Hello from Volodymyr Ponomarenko KN-N223 (Lab 1)

From d159ceaae856ae548f901eaacee79d4f144ce136 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 00:00:44 +0200 Subject: [PATCH 02/12] Init --- Makefile | 8 +++ app/Clients.php | 24 ++++++++ app/Haircuts.php | 22 +++++++ app/Http/Controllers/HomeController.php | 55 ++++++++++++++---- app/Works.php | 32 +++++++++++ ...2024_11_17_182831_create_clients_table.php | 32 +++++++++++ ...024_11_17_183052_create_haircuts_table.php | 31 ++++++++++ .../2024_11_17_183060_create_works_table.php | 29 ++++++++++ database/seeds/DatabaseSeeder.php | 24 ++++++++ resources/views/welcome.blade.php | 57 +++++++++++++++++-- routes/web.php | 7 +-- 11 files changed, 300 insertions(+), 21 deletions(-) create mode 100644 Makefile create mode 100644 app/Clients.php create mode 100644 app/Haircuts.php create mode 100644 app/Works.php create mode 100644 database/migrations/2024_11_17_182831_create_clients_table.php create mode 100644 database/migrations/2024_11_17_183052_create_haircuts_table.php create mode 100644 database/migrations/2024_11_17_183060_create_works_table.php diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..19a443a70 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +start: + docker run -p 80:8181 peace-for-hair + +build: + docker build -t peace-for-hair . + +stop: + docker stop php-laravel-docker \ No newline at end of file diff --git a/app/Clients.php b/app/Clients.php new file mode 100644 index 000000000..5b9c1f3b4 --- /dev/null +++ b/app/Clients.php @@ -0,0 +1,24 @@ +string('first_name'); + $table->string('second_name'); + $table->string('third_name'); + $table->enum('sex', ['male', 'female']); + */ + protected $fillable = [ + 'first_name', + 'second_name', + 'third_name', + 'sex', + 'has_discount', + ]; +} diff --git a/app/Haircuts.php b/app/Haircuts.php new file mode 100644 index 000000000..9a5d47003 --- /dev/null +++ b/app/Haircuts.php @@ -0,0 +1,22 @@ +string('name'); + $table->float('cost'); + $table->enum('sex', ['male', 'female']); + */ + protected $fillable = [ + 'name', + 'cost', + 'sex', + ]; +} diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 7cbc2c3f0..31d46af2e 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -2,20 +2,13 @@ namespace App\Http\Controllers; +use App\Clients; +use App\Haircuts; +use App\Works; use Illuminate\Http\Request; class HomeController extends Controller { - /** - * Create a new controller instance. - * - * @return void - */ - public function __construct() - { - $this->middleware('auth'); - } - /** * Show the application dashboard. * @@ -23,6 +16,46 @@ public function __construct() */ public function index() { - return view('home'); + return view('welcome', [ + 'haircuts' => Haircuts::all()->toArray() ?? [], + 'works' => Works::with('client')->with('haircut')->get()->toArray() ?? [], + ]); + } + + public function create() + { + $client = Clients::where([ + ['first_name', request()->get('first_name')], + ['second_name', request()->get('second_name')], + ['third_name', request()->get('third_name')], + ])->first(); + + if (!$client) { + $client = Clients::create([ + 'first_name' => request()->get('first_name'), + 'second_name' => request()->get('second_name'), + 'third_name' => request()->get('third_name'), + ]); + + $client->save(); + } + + $work = Works::create([ + 'haircut_id' => request()->get('haircut_id'), + 'client_id' => $client->id, + ]); + + $work->save(); + + + $count = Works::where('client_id', $client->id)->get()->count(); + + if ($count > 4) { + $client->has_discount = true; + + $client->save(); + } + + return redirect()->route('home'); } } diff --git a/app/Works.php b/app/Works.php new file mode 100644 index 000000000..b1c768ab8 --- /dev/null +++ b/app/Works.php @@ -0,0 +1,32 @@ +foreignId('haircut_id')->references('id')->on('haircuts'); + * $table->foreignId('client_id')->references('id')->on('clients'); + * + * @var array + */ + protected $fillable = [ + 'haircut_id', + 'client_id', + ]; + + public function client() + { + return $this->belongsTo(Clients::class); + } + + public function haircut() + { + return $this->belongsTo(Haircuts::class); + } +} diff --git a/database/migrations/2024_11_17_182831_create_clients_table.php b/database/migrations/2024_11_17_182831_create_clients_table.php new file mode 100644 index 000000000..2f95db763 --- /dev/null +++ b/database/migrations/2024_11_17_182831_create_clients_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('first_name'); + $table->string('second_name'); + $table->string('third_name'); + $table->enum('sex', ['male', 'female']); + $table->boolean('has_discount')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('clients'); + } +}; diff --git a/database/migrations/2024_11_17_183052_create_haircuts_table.php b/database/migrations/2024_11_17_183052_create_haircuts_table.php new file mode 100644 index 000000000..a8734fb64 --- /dev/null +++ b/database/migrations/2024_11_17_183052_create_haircuts_table.php @@ -0,0 +1,31 @@ +id(); + $table->string('name'); + $table->float('cost'); + $table->enum('sex', ['male', 'female']); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('haircuts'); + } +}; diff --git a/database/migrations/2024_11_17_183060_create_works_table.php b/database/migrations/2024_11_17_183060_create_works_table.php new file mode 100644 index 000000000..b7ba77953 --- /dev/null +++ b/database/migrations/2024_11_17_183060_create_works_table.php @@ -0,0 +1,29 @@ +id(); + $table->foreignId('haircut_id')->references('id')->on('haircuts'); + $table->foreignId('client_id')->references('id')->on('clients'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('works'); + } +}; diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index 91cb6d1c2..a6a511640 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -12,5 +12,29 @@ class DatabaseSeeder extends Seeder public function run() { // $this->call(UsersTableSeeder::class); + + \App\Haircuts::create([ + 'cost' => 100, + 'name' => 'Haircut 1 male', + 'sex' => 'male', + ]); + + \App\Haircuts::create([ + 'cost' => 200, + 'name' => 'Haircut 2 female', + 'sex' => 'female', + ]); + + \App\Haircuts::create([ + 'cost' => 100, + 'name' => 'Haircut 3 male', + 'sex' => 'male', + ]); + + \App\Haircuts::create([ + 'cost' => 250, + 'name' => 'Haircut 4 female', + 'sex' => 'female', + ]); } } diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 0b61e44c7..882cab583 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,9 +1,54 @@ - - Volodymyr Ponomarenko - - -

Hello from Volodymyr Ponomarenko KN-N223 (Lab 1)

- + + haircut + + +
+

Peace of hair

+
+
+
+ @csrf + @foreach($haircuts as $haircut) +
+
+ Haircut number: {{$haircut['id']}} +
+
+ Haircut name: {{$haircut['name']}} +
+
+ Haircut sex: {{$haircut['sex']}} +
+
+ @endforeach +
+
First name
+
Second name
+
Third name
+
Number of hair cut(see on the top of page)
+ +
+
+
+
+ @foreach ($works as $work) +
+
+ Haircut name: {{$work['haircut']['name']}} +
+
+ Haircut cost: {{$work['haircut']['cost']}} +
+
+ Haircut client full name: {{$work['client']['first_name'] . $work['client']['second_name'] . $work['client']['third_name']}} +
+
+ Client has discount: {{$work['client']['has_discount'] }} +
+
+ @endforeach +
+ diff --git a/routes/web.php b/routes/web.php index 4d51ed8cd..3aa50227d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -13,8 +13,7 @@ | */ -Route::get('/', function () { - return view('welcome'); -}); -Route::get('/home', 'HomeController@index')->name('home'); +Route::get('/', 'HomeController@index')->name('home'); + +Route::post('/works', 'HomeController@create')->name('create'); From 66687184407f61e7f4722a45d9aecacc4087aeab Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 00:05:35 +0200 Subject: [PATCH 03/12] Init --- scripts/00-laravel-deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/00-laravel-deploy.sh b/scripts/00-laravel-deploy.sh index b7419a2c3..e687dd710 100755 --- a/scripts/00-laravel-deploy.sh +++ b/scripts/00-laravel-deploy.sh @@ -10,3 +10,6 @@ php artisan route:cache echo "Running migrations..." php artisan migrate --force + +echo "Running seed..." +php artisan db:seed From 9d890a4c0730dfb61b5d6744822e16dc78ea12dd Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 00:11:24 +0200 Subject: [PATCH 04/12] Init --- start.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 start.sh diff --git a/start.sh b/start.sh new file mode 100755 index 000000000..e687dd710 --- /dev/null +++ b/start.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +echo "Running composer" +composer install --no-dev --working-dir=/var/www/html + +echo "Caching config..." +php artisan config:cache + +echo "Caching routes..." +php artisan route:cache + +echo "Running migrations..." +php artisan migrate --force + +echo "Running seed..." +php artisan db:seed From 238e1c1bda008d2e0b093af4803b4a3fe163556d Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 00:19:06 +0200 Subject: [PATCH 05/12] Init --- app/Http/Controllers/HomeController.php | 32 +++++++++++++++++++++++++ database/seeds/DatabaseSeeder.php | 24 ------------------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 31d46af2e..417bdf294 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -24,6 +24,9 @@ public function index() public function create() { + + $this->createCL(); + $client = Clients::where([ ['first_name', request()->get('first_name')], ['second_name', request()->get('second_name')], @@ -58,4 +61,33 @@ public function create() return redirect()->route('home'); } + + public function createCL() + { + if(Haircuts::all()->count() > 0) return; + + \App\Haircuts::create([ + 'cost' => 100, + 'name' => 'Haircut 1 male', + 'sex' => 'male', + ]); + + \App\Haircuts::create([ + 'cost' => 200, + 'name' => 'Haircut 2 female', + 'sex' => 'female', + ]); + + \App\Haircuts::create([ + 'cost' => 100, + 'name' => 'Haircut 3 male', + 'sex' => 'male', + ]); + + \App\Haircuts::create([ + 'cost' => 250, + 'name' => 'Haircut 4 female', + 'sex' => 'female', + ]); + } } diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index a6a511640..91cb6d1c2 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -12,29 +12,5 @@ class DatabaseSeeder extends Seeder public function run() { // $this->call(UsersTableSeeder::class); - - \App\Haircuts::create([ - 'cost' => 100, - 'name' => 'Haircut 1 male', - 'sex' => 'male', - ]); - - \App\Haircuts::create([ - 'cost' => 200, - 'name' => 'Haircut 2 female', - 'sex' => 'female', - ]); - - \App\Haircuts::create([ - 'cost' => 100, - 'name' => 'Haircut 3 male', - 'sex' => 'male', - ]); - - \App\Haircuts::create([ - 'cost' => 250, - 'name' => 'Haircut 4 female', - 'sex' => 'female', - ]); } } From e8d5b49d7c2b7f492c5ac13ee77df880460bf0b7 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 00:24:49 +0200 Subject: [PATCH 06/12] Init --- app/Http/Controllers/HomeController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 417bdf294..48b0c7abe 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -16,6 +16,8 @@ class HomeController extends Controller */ public function index() { + $this->createCL(); + return view('welcome', [ 'haircuts' => Haircuts::all()->toArray() ?? [], 'works' => Works::with('client')->with('haircut')->get()->toArray() ?? [], @@ -25,7 +27,7 @@ public function index() public function create() { - $this->createCL(); + $hair = Haircuts::firstWhere('id', request()->get('haircut_id')); $client = Clients::where([ ['first_name', request()->get('first_name')], @@ -34,10 +36,13 @@ public function create() ])->first(); if (!$client) { + + $client = Clients::create([ 'first_name' => request()->get('first_name'), 'second_name' => request()->get('second_name'), 'third_name' => request()->get('third_name'), + 'sex' => $hair->sex, ]); $client->save(); From 0a7e33b6f6d0ad51138a2f819142c9cae34dad10 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 16:29:16 +0200 Subject: [PATCH 07/12] Init --- app/Clients.php | 5 ++ app/Http/Controllers/HomeController.php | 23 ++++--- app/Works.php | 1 + .../2024_11_17_183060_create_works_table.php | 1 + resources/views/welcome.blade.php | 64 ++++++++++++++++--- 5 files changed, 76 insertions(+), 18 deletions(-) diff --git a/app/Clients.php b/app/Clients.php index 5b9c1f3b4..161c8ec63 100644 --- a/app/Clients.php +++ b/app/Clients.php @@ -21,4 +21,9 @@ class Clients extends Model 'sex', 'has_discount', ]; + + public function works() + { + return $this->hasMany(Works::class); + } } diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 48b0c7abe..7648b1c12 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -21,6 +21,11 @@ public function index() return view('welcome', [ 'haircuts' => Haircuts::all()->toArray() ?? [], 'works' => Works::with('client')->with('haircut')->get()->toArray() ?? [], + 'clients' => Clients::all()->map(function ($client) { + $client['haircut_count'] = Works::where('client_id', $client->id)->count(); + return $client; + })->toArray(), + 'maleRegularClients' => Clients::where('sex', 'male')->where('has_discount', true)->get() ]); } @@ -33,6 +38,7 @@ public function create() ['first_name', request()->get('first_name')], ['second_name', request()->get('second_name')], ['third_name', request()->get('third_name')], + ['sex', $hair->sex] ])->first(); if (!$client) { @@ -50,6 +56,7 @@ public function create() $work = Works::create([ 'haircut_id' => request()->get('haircut_id'), + 'cost' => $client->has_discount ? $hair->cost * 0.97 : $hair->cost, 'client_id' => $client->id, ]); @@ -58,7 +65,7 @@ public function create() $count = Works::where('client_id', $client->id)->get()->count(); - if ($count > 4) { + if ($count > 3) { $client->has_discount = true; $client->save(); @@ -73,25 +80,25 @@ public function createCL() \App\Haircuts::create([ 'cost' => 100, - 'name' => 'Haircut 1 male', + 'name' => 'Male superman haircut', 'sex' => 'male', ]); \App\Haircuts::create([ - 'cost' => 200, - 'name' => 'Haircut 2 female', + 'cost' => 150, + 'name' => 'Male superwoman haircut', 'sex' => 'female', ]); \App\Haircuts::create([ - 'cost' => 100, - 'name' => 'Haircut 3 male', + 'cost' => 10, + 'name' => 'Easy cut for male', 'sex' => 'male', ]); \App\Haircuts::create([ - 'cost' => 250, - 'name' => 'Haircut 4 female', + 'cost' => 3, + 'name' => 'Easy cut for female', 'sex' => 'female', ]); } diff --git a/app/Works.php b/app/Works.php index b1c768ab8..9bfc89583 100644 --- a/app/Works.php +++ b/app/Works.php @@ -18,6 +18,7 @@ class Works extends Model protected $fillable = [ 'haircut_id', 'client_id', + 'cost', ]; public function client() diff --git a/database/migrations/2024_11_17_183060_create_works_table.php b/database/migrations/2024_11_17_183060_create_works_table.php index b7ba77953..d7596b704 100644 --- a/database/migrations/2024_11_17_183060_create_works_table.php +++ b/database/migrations/2024_11_17_183060_create_works_table.php @@ -13,6 +13,7 @@ public function up(): void { Schema::create('works', function (Blueprint $table) { $table->id(); + $table->float('cost'); $table->foreignId('haircut_id')->references('id')->on('haircuts'); $table->foreignId('client_id')->references('id')->on('clients'); $table->timestamps(); diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 882cab583..d17e9b186 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -4,25 +4,25 @@ haircut -
-

Peace of hair

-
@csrf +

Haircuts list:

@foreach($haircuts as $haircut)
- Haircut number: {{$haircut['id']}} + Haircut number: {{$haircut['id']}}
- Haircut name: {{$haircut['name']}} + Haircut name: {{$haircut['name']}}
- Haircut sex: {{$haircut['sex']}} + Haircut sex: {{$haircut['sex']}}
@endforeach + +

Create work:

First name
Second name
@@ -33,19 +33,63 @@
+

Works entries:

@foreach ($works as $work)
- Haircut name: {{$work['haircut']['name']}} + Work code: {{$work['id']}} +
+
+ Haircut name: {{$work['haircut']['name']}} +
+
+ Haircut base cost: {{$work['haircut']['cost']}} +
+
+ Haircut cost: {{$work['cost']}} +
+
+ Haircut client full name: {{$work['client']['first_name'] . ' ' . $work['client']['second_name'] . ' ' . $work['client']['third_name']}} +
+
+ @endforeach +
+ +
+

Clients entries:

+ @foreach ($clients as $client) +
+
+ Client full name: {{ $client['first_name'] . ' ' . $client['second_name'] . ' ' . $client['third_name']}} +
+
+ Client sex: {{ $client['sex'] }} +
+
+ Number of haircuts: {{ $client['haircut_count'] }} +
+
+ Has discount: {{ $client['has_discount'] ? 'yes' : 'no' }} +
+
+ @endforeach +
+ +
+

MALE REGULAR entries:

+ @foreach ($maleRegularClients as $maleRegularClient) +
+
+ Client full name: {{ $maleRegularClient['first_name'] . ' ' . $maleRegularClient['second_name'] . ' ' . $maleRegularClient['third_name']}}
- Haircut cost: {{$work['haircut']['cost']}} + Client sex: {{ $maleRegularClient['sex'] }}
- Haircut client full name: {{$work['client']['first_name'] . $work['client']['second_name'] . $work['client']['third_name']}} + Number of haircuts: {{ $maleRegularClient['haircut_count'] }}
- Client has discount: {{$work['client']['has_discount'] }} + Has discount: {{ $maleRegularClient['has_discount'] ? 'yes' : 'no' }}
@endforeach From f65233f8519304bb9835917fbce995b2cd064531 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 17:05:49 +0200 Subject: [PATCH 08/12] Init --- scripts/00-laravel-deploy.sh | 3 +++ start.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/00-laravel-deploy.sh b/scripts/00-laravel-deploy.sh index e687dd710..00380bd14 100755 --- a/scripts/00-laravel-deploy.sh +++ b/scripts/00-laravel-deploy.sh @@ -8,6 +8,9 @@ php artisan config:cache echo "Caching routes..." php artisan route:cache +echo "Clear database..." +php artisan db:wipe + echo "Running migrations..." php artisan migrate --force diff --git a/start.sh b/start.sh index e687dd710..00380bd14 100755 --- a/start.sh +++ b/start.sh @@ -8,6 +8,9 @@ php artisan config:cache echo "Caching routes..." php artisan route:cache +echo "Clear database..." +php artisan db:wipe + echo "Running migrations..." php artisan migrate --force From ee872f4fc8ee8d9ee0cb22a748d85e6212324cf4 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 17:17:54 +0200 Subject: [PATCH 09/12] Init --- scripts/00-laravel-deploy.sh | 2 +- start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/00-laravel-deploy.sh b/scripts/00-laravel-deploy.sh index 00380bd14..6c7a59d9d 100755 --- a/scripts/00-laravel-deploy.sh +++ b/scripts/00-laravel-deploy.sh @@ -8,7 +8,7 @@ php artisan config:cache echo "Caching routes..." php artisan route:cache -echo "Clear database..." +echo "Clear database..2." php artisan db:wipe echo "Running migrations..." diff --git a/start.sh b/start.sh index 00380bd14..720201e0d 100755 --- a/start.sh +++ b/start.sh @@ -8,7 +8,7 @@ php artisan config:cache echo "Caching routes..." php artisan route:cache -echo "Clear database..." +echo "Clear database.1.." php artisan db:wipe echo "Running migrations..." From 039136ead537cb1392ed8c4d6a8f669c668470f5 Mon Sep 17 00:00:00 2001 From: Vladimir Ponomarenko Date: Mon, 18 Nov 2024 17:47:23 +0200 Subject: [PATCH 10/12] Create docker-image.yml --- .github/workflows/docker-image.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000..bd41c414c --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,20 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Deploy to production + uses: johnbeynon/render-deploy-action@v0.0.8 + with: + service-id: ${{ secrets.SERVICE_ID }} + api-key: ${{ secrets.RENDER_API_KEY }} From 0e8d9c66a5471b67f44bfec2071f19d651f20091 Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 17:58:06 +0200 Subject: [PATCH 11/12] Init --- resources/views/welcome.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index d17e9b186..7cfecdef3 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -5,6 +5,7 @@
+

@csrf

Haircuts list:

From 8e0e7638e5cd2cbfba645ac69e5100bd406d117f Mon Sep 17 00:00:00 2001 From: Volodymyr Ponomarenko Date: Mon, 18 Nov 2024 18:00:34 +0200 Subject: [PATCH 12/12] Init --- resources/views/welcome.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 7cfecdef3..55a78212b 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -5,7 +5,7 @@
-

+

Hello from lab 4

@csrf

Haircuts list: