예제 #1
0
 public function staticPage($url)
 {
     $content = Maintext::where('url', $url)->first();
     if (!$content) {
         abort(404);
     }
     return view($this->localeDir . 'templates.content', compact('content'));
 }
예제 #2
0
 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);
 }