예제 #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function postAddPage(Request $request)
 {
     $page = new Pages();
     $page->title = $request->title;
     $page->slug = $request->slug;
     $page->contant = $request->editor;
     if ($page->save()) {
         return redirect('/dashboard/pages');
     }
 }