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,69 @@
<?php
namespace App\Http\Requests\Dashboard\Slider;
use Illuminate\Foundation\Http\FormRequest;
class Update extends FormRequest
{
/**
*
* @return array
*/
public function rules()
{
if ($this->isMethod('get')) {
return [];
}
return [
'name' => 'required|string',
'link' => 'nullable|string',
'language' => 'required|string',
'type' => 'required|string|in:desktop,mobile',
'image' => 'nullable|image',
'placement' => 'required|string|in:top,middle'
];
}
public function getName(): string
{
return $this->get('name');
}
/**
* @return string
*/
public function getLink(): string
{
if ($this->get('link')) {
return $this->get('link');
}
return '#';
}
public function getLanguage(): string
{
return $this->get('language');
}
public function getType(): string
{
return $this->get('type');
}
public function getPlacement(): string
{
return $this->get('placement');
}
public function getPublished()
{
if ($this->get('published')) {
return true;
}
return false;
}
}