-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add carbon, rearrange seeder * icons, images, lang * update * cr changes * Update lang/en/projects.php Co-authored-by: Ewelina Skrzypacz <56546832+EwelinaSkrzypacz@users.noreply.github.com> * img update --------- Co-authored-by: Ewelina Skrzypacz <56546832+EwelinaSkrzypacz@users.noreply.github.com>
- Loading branch information
1 parent
6868d9a
commit 9d3ab84
Showing
20 changed files
with
598 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Seeders; | ||
|
||
use Blumilk\Website\Models\Project; | ||
use Illuminate\Database\Seeder; | ||
|
||
class ProjectsSeeder extends Seeder | ||
{ | ||
public function run(): void | ||
{ | ||
$this->seedVita(); | ||
$this->seedGetTheBox(); | ||
$this->seedK1(); | ||
$this->seedCarbon(); | ||
|
||
Project::factory()->count(12)->create(); | ||
} | ||
|
||
private function seedVita(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja do", | ||
"en" => "Application for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "zamawiania usług medycznych", | ||
"en" => "ordering medical services", | ||
], | ||
"name_third_part" => [ | ||
"pl" => "z przychodni Vita+", | ||
"en" => "from the Vita+ clinic", | ||
], | ||
"color" => "#9676F9", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "vita", | ||
"template" => "vita", | ||
]); | ||
} | ||
|
||
private function seedGetTheBox(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja shared economy do", | ||
"en" => "Shared economy application for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "przewozów przesyłek", | ||
"en" => "the transport of parcels", | ||
], | ||
"name_third_part" => [ | ||
"pl" => null, | ||
"en" => null, | ||
], | ||
"color" => "#FAD12A", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "getthebox", | ||
"template" => "getthebox", | ||
]); | ||
} | ||
|
||
private function seedK1(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "System", | ||
"en" => "System for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "zarządzania licencjami i dystrybucji", | ||
"en" => "managing licenses and distributing", | ||
], | ||
"name_third_part" => [ | ||
"pl" => "oprogramowania", | ||
"en" => "Software", | ||
], | ||
"color" => "#FF5555", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "k1", | ||
"template" => "k1", | ||
]); | ||
} | ||
|
||
private function seedCarbon(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja do zbierania danych i generowania raportów", | ||
"en" => "Application for collecting data and generating reports", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "dotyczących śladu węglowego", | ||
"en" => "regarding carbon footprint", | ||
], | ||
"name_third_part" => [ | ||
"pl" => null, | ||
"en" => null, | ||
], | ||
"color" => "#F39200", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "carbon", | ||
"template" => "carbon", | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.