fix bugs
This commit is contained in:
@@ -7,7 +7,7 @@ use App\Containers\Schedule\UI\WEB\Transformers\EducationalGroupResource;
|
||||
use App\Ship\Contracts\SeoServiceInterface;
|
||||
use App\Ship\Controllers\Controller;
|
||||
use App\Ship\Enums\Education\FormEducation;
|
||||
use App\Ship\Requests\Request;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ClientScheduleController extends Controller
|
||||
{
|
||||
@@ -21,9 +21,7 @@ class ClientScheduleController extends Controller
|
||||
$query->whereRaw('LOWER(title) like ?', ["%".strtolower($search)."%"]);
|
||||
})
|
||||
->when(request()->input('favorite'), function ($query, $favorite) {
|
||||
$query->whereHas('schedules', function ($query) use ($favorite) {
|
||||
$query->whereIn('id', $favorite);
|
||||
});
|
||||
$query->whereIn('id', $favorite);
|
||||
})
|
||||
->when(request()->input('form'), function ($query, $form) {
|
||||
$query->where('education_form_id', FormEducation::fromName($form)->value);
|
||||
|
||||
@@ -151,7 +151,7 @@ class PostForm
|
||||
->resize(50)
|
||||
->imageEditor()
|
||||
->helperText('Загрузите главное изображение для новости')
|
||||
->maxSize(2048)
|
||||
->maxSize(20480)
|
||||
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp'])
|
||||
->imagePreviewHeight('150')
|
||||
->panelLayout('integrated'),
|
||||
@@ -167,7 +167,7 @@ class PostForm
|
||||
->panelLayout('grid')
|
||||
->helperText('Загрузите дополнительные изображения для галереи')
|
||||
->maxFiles(10)
|
||||
->maxSize(2048)
|
||||
->maxSize(20480)
|
||||
->acceptedFileTypes(['image/jpeg', 'image/png'])
|
||||
->imagePreviewHeight('150'),
|
||||
]),
|
||||
@@ -253,7 +253,7 @@ class PostForm
|
||||
->resize(50)
|
||||
->imageEditor()
|
||||
->required()
|
||||
->maxSize(2048)
|
||||
->maxSize(50000)
|
||||
->helperText('Загрузите фоновое изображение для слайда')
|
||||
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp']),
|
||||
ToggleButtons::make('slide.image.shading')
|
||||
|
||||
@@ -69,7 +69,7 @@ class ScheduleResource extends Resource
|
||||
->label('Файл PDF')
|
||||
->required()
|
||||
->acceptedFileTypes(['application/pdf'])
|
||||
->maxSize(5120) // 5MB
|
||||
->maxSize(10000)
|
||||
->disk('public')
|
||||
->directory('schedules')
|
||||
->downloadable()
|
||||
|
||||
Reference in New Issue
Block a user