cms/app/Http/Requests/Admin/Themes/ThemeFileReadRequest.php
Funky Waddle 37ed997989 feat(cms): initialize Laravel project structure and core CMS files
- Added standard Laravel directory structure and configuration.

- Included Svelte and Tailwind configuration for the admin interface.

- Added core PHPUnit and testing scripts.
2026-04-13 12:48:06 -05:00

35 lines
748 B
PHP

<?php
namespace App\Http\Requests\Admin\Themes;
use Illuminate\Foundation\Http\FormRequest;
/**
* Request for reading a theme file.
*/
class ThemeFileReadRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
return $this->user()->hasPermission('edit-themes');
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'theme' => 'required|string',
'path' => 'required|string',
];
}
}