for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\User\UI\API\Requests;
use App\Port\Request\Abstracts\Request;
use Illuminate\Contracts\Auth\Access\Gate;
/**
* Class UpdateAgentUserRequest.
*
* @author Mahmoud Zalt <[email protected]>
*/
class UpdateAgentUserRequest extends Request
{
* Get the validation rules that apply to the request.
* @return array
public function rules()
return [
'password' => 'min:6|max:30',
'name' => 'min:2|max:50',
'email' => 'email',
];
}
* Determine if the user is authorized to make this request.
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
* @return bool
public function authorize(Gate $gate)
$gate
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return true;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.