for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Finder\Http\Requests\User;
class CreateRoleRequest extends Request
{
/**
* Class constructor.
*
* @param array
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct(array $rules = [])
parent::__construct(
[
'name' => [_('Name'), 'required|max:255|unique:roles,name{excludeCurrentId}'],
'is_default' => [_('Default'), 'required|integer|min:0|max:1'],
]
);
}
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.