public function isCoordenador() { return $this->perfil == Perfil::where('nome', 'Coordenador')->first(); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(PerfilRequest $request, Perfil $perfil) { $perfil->create($request->all()); return $perfil; }