예제 #1
0
 public function store(CreatePagesRequest $request)
 {
     // $page =Page::create( $request->all() );
     Page::where('id', 1)->update(['page_name' => $request->input('page_name')]);
     return rediret()->back();
 }
예제 #2
0
 /**
  * Store a newly created pages in storage.
  *
  * @param CreatePagesRequest|Request $request
  */
 public function store(CreatePagesRequest $request)
 {
     // $request->merge(['slug'=> turkish_slug($request->input('title'))]);
     Pages::create($request->all());
     return redirect()->route('admin.pages.index');
 }