create AccessToken route(Vue)

This commit is contained in:
Milos Holba
2021-05-28 16:47:14 +02:00
parent 6456950081
commit 9189d73df9
8 changed files with 115 additions and 75 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\User;
use Illuminate\Foundation\Http\FormRequest;
class UserCreateAccessTokenRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|string|min:3',
];
}
}