public static function urlFaleConosco() { $faleconosco = new FaleConosco(Config::get("PRF.producao")); $url = ''; if (Auth::check()) { $url = "?usuarioCpf=" . Auth::user()->cpf . "&siglaSistema=" . config('PRF.siglaSistema'); } return str_replace("/ws", "/generico/mensagemInterna/Create.xhtml" . $url, $faleconosco->getUrl()); }
/** * Show the application dashboard to the user. * * @return Response */ public function index() { $faleconosco = new FaleConosco(config("PRF.producao")); return view('index')->with("faleconosco", $faleconosco->getAvisos(Auth::user()->cpf, config("PRF.siglaSistema"))); }