restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Compilation;
class CompilationsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$compilation1 = Compilation::create([
'title' => [
'uz' => 'Eng yaxshi sotuvchi',
'ru' => 'Лидер продаж'
],
'position' => 2,
'published' => true,
]);
$compilation2 = Compilation::create([
'title' => [
'uz' => 'Ommabop mahsulotlar',
'ru' => 'Популярные товары'
],
'position' => 1,
'published' => true,
]);
$compilation3 = Compilation::create([
'title' => [
'uz' => 'Yangi mahsulotlar',
'ru' => 'Новые товары'
],
'position' => 1,
'published' => true,
]);
if (app()->environment('local')) {
$compilation1->products()->attach([1, 2]);
$compilation2->products()->attach([1, 2]);
$compilation3->products()->attach([1, 2]);
}
}
}