app/Http/Requests/CreatePermissionRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name'          => 'required|unique:permissions,name',
            'display_name'  => 'required',
            'description'   => 'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|unique:permissions,name' , 'display_name' => 'required' , 'description' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// https://laravel.com/docs/5.2/validation#available-validation-rules