for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
App\Http\Requests\Request
Request
\
use Illuminate\Foundation\Http\FormRequest;
class SkillRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
// only allow updates if the user is logged in
return \Auth::check();
}
* Get the validation rules that apply to the request.
* @return []string
[]string
0
public function rules()
return [
'name' => 'required|unique:skills',
'description' => 'required'
];
* Get the validation attributes that apply to the request.
* @return array
public function attributes()
//
* Get the validation messages that apply to the request.
public function messages()