You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/database/seeders/TransportSeeder.php

34 lines
828 B
PHTML

8 months ago
<?php
namespace Database\Seeders;
use App\Models\Transport;
8 months ago
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class TransportSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
$t = new Transport();
$t->title = __("Motor bike delivery");
$t->description = "Transport just for Tehran orders (pay by customer)";
$t->icon = 'ri-motorbike-line';
$t->is_default = false;
$t->price = 0;
$t->save();
$t = new Transport();
$t->title = __("Post office delivery");
$t->description = "Transport with post around country";
$t->icon = 'ri-signpost-line';
$t->is_default = true;
$t->price = 30000;
$t->save();
8 months ago
}
}