mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
34 lines
708 B
PHP
34 lines
708 B
PHP
<?php
|
|
namespace App\Http\Requests\Share;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateShareRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return Auth::check();
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'protected' => 'required|boolean',
|
|
'permission' => 'nullable|string',
|
|
'expiration' => 'integer|nullable',
|
|
'password' => 'string',
|
|
];
|
|
}
|
|
}
|