public function allAutores() { $autores = autor::all(); foreach ($autores as $item) { $item['opciones'] = $item['nombre']; } return $autores; }
public function autorEdit($id) { \Blade::setContentTags('<%', '%>'); // for variables and all things Blade \Blade::setEscapedContentTags('<%%', '%%>'); // for escaped data $arreglo = ['autores' => autor::all(), 'textoId' => $id]; return view('texto.folderEdit.autorEdit', compact('arreglo')); }