koel/app/Http/Requests/API/SettingRequest.php
2018-08-30 10:11:47 +07:00

21 lines
346 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',
];
}
}