mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
21 lines
347 B
PHP
21 lines
347 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
/**
|
|
* @property string $media_path
|
|
*/
|
|
class SettingRequest extends Request
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return auth()->user()->is_admin;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'media_path' => 'string|required|path.valid',
|
|
];
|
|
}
|
|
}
|