for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Larafolio\Http\Requests;
use Illuminate\Http\Request;
class ProjectRequest extends ResourceRequest
{
/**
* Type of resource.
*
* @var string
*/
protected $resourceType = 'project';
* Get the validation rules that apply to the request.
* @return array
public function rules(Request $request)
$nameRule = 'required_with:type,links,lines,blocks|unique:projects,name';
return $this->processRules($request, $nameRule);
}