function footer() { $this->SetY(-15); $this->SetFont('Arial', 'I', 10); $usuario = TabelaUsuario::find(Auth::id()); date_default_timezone_set("America/Halifax"); $this->Cell(0, 10, 'Pagina ' . $this->PageNo() . '', 0, 0, 'C'); $this->ln(0); $this->Cell(250, 10, utf8_decode('Usuario: ' . $usuario->nome)); $this->ln(0); $this->Cell(0, 10, utf8_decode('Data: ' . date("d-m-Y H:i:s")), 0, 1, 'R'); }
public function getDeletar($id) { $deletar = TabelaUsuario::find($id); $deletar->delete(); return Redirect::to('usuario'); }