| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache2/htdocs/app/database/seeders/ |
Upload File : |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class FakerSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$lockerBoxTypes = [
[
'title' => "SmallBox",
'length' => 20, 'width' => 20, 'height' => 20,
"booking_fees" => 1, "overtime_fees" => 1,
'created_at' => now(),
],
[
'title' => "MediumBox",
'length' => 50, 'width' => 50, 'height' => 50,
"booking_fees" => 2, "overtime_fees" => 1,
'created_at' => now(),
],
[
'title' => "BigBox",
'length' => 80, 'width' => 80, 'height' => 80,
"booking_fees" => 3, "overtime_fees" => 1,
'created_at' => now(),
],
[
'title' => "MegaBox",
'length' => 100, 'width' => 100, 'height' => 100,
"booking_fees" => 4, "overtime_fees" => 1,
'created_at' => now(),
],
];
\App\Models\LockerBoxType::insert($lockerBoxTypes);
}
}