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,43 @@
<?php
namespace App\Jobs\Dashboard\Compilation;
use App\Http\Requests\Dashboard\Compilation\Store as StoreRequest;
use App\Models\Compilation;
class Store
{
protected $request;
/**
* Store constructor.
* @param StoreRequest $request
*/
public function __construct(StoreRequest $request)
{
$this->request = $request;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
$compilation = Compilation::create([
'title' => $this->request->getTitle(),
'published' => $this->request->getPublished(),
'position' => 1,
'category_id' => $this->request->getCategory()
]);
$map = array_map(function ($product) {
return $product['id'];
}, $this->request->products);
$compilation->products()->attach($map);
}
}