public function store(CreatePagesRequest $request)
 {
     // $page =Page::create( $request->all() );
     Page::where('id', 1)->update(['page_name' => $request->input('page_name')]);
     return rediret()->back();
 }
 /**
  * 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');
 }