public function staticPage($url) { $content = Maintext::where('url', $url)->first(); if (!$content) { abort(404); } return view($this->localeDir . 'templates.content', compact('content')); }
public function getIndex($id = 'index') { //dd($this->metas); $text = Maintext::find($id); $text = Maintext::where('url', '=', $id)->first(); //dd($text); return view('templates.index')->with('text', $text); }