This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
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.
- Loading branch information
1 parent
5175f3e
commit dda1784
Showing
18 changed files
with
556 additions
and
484 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
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
32 changes: 0 additions & 32 deletions
32
database/migrations/2022_05_10_091301_create_brands_table.php
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,64 @@ | ||
<?php | ||
|
||
namespace Database\Seeders; | ||
|
||
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | ||
use Illuminate\Database\Seeder; | ||
|
||
class VehicleSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
$data = [ | ||
[ | ||
'name' => 'Honda Scoopy Smart Key', | ||
'brand' => 'Honda', | ||
'transmission' => 'Automatic', | ||
'fuel' => 'Pertamax', | ||
'cc' => 110, | ||
'price' => 105000, | ||
'type' => 'motor', | ||
'photo' => 'Honda Scoopy Smart Key.jpg', | ||
'created_at' => date("Y-m-d H:i:s"), | ||
'updated_at' => date("Y-m-d H:i:s"), | ||
'year' => 2022, | ||
'available_unit' => 3 | ||
], | ||
[ | ||
'name' => 'Honda Revo X', | ||
'brand' => 'Honda', | ||
'transmission' => 'Manual', | ||
'fuel' => 'Pertamax', | ||
'cc' => 110, | ||
'price' => 90000, | ||
'type' => 'motor', | ||
'photo' => 'Honda Revo X.jpg', | ||
'created_at' => date("Y-m-d H:i:s"), | ||
'updated_at' => date("Y-m-d H:i:s"), | ||
'year' => 2019, | ||
'available_unit' => 2 | ||
], | ||
[ | ||
'name' => 'Honda BeAT FI', | ||
'brand' => 'Honda', | ||
'transmission' => 'Automatic', | ||
'fuel' => 'Pertamax', | ||
'cc' => 110, | ||
'price' => 85000, | ||
'type' => 'motor', | ||
'photo' => 'Honda BeAT FI.jpg', | ||
'created_at' => date("Y-m-d H:i:s"), | ||
'updated_at' => date("Y-m-d H:i:s"), | ||
'year' => 2019, | ||
'available_unit' => 3 | ||
] | ||
]; | ||
|
||
\DB::table('vehicles')->insert($data); | ||
} | ||
} |
Oops, something went wrong.