mardi 1 octobre 2019

Support To Change Link Htaccess in Laravel

I want to change my link from

http://localhost/laravel/search?keyword=freestyle

To

http://localhost/laravel/search/freestyle

I tried many ways to change but it didn't work. I hope someone will help me. Thank you

public function Search(Request $request){
        $keywords = $request->keyword;

        $search_phim = DB::table("tbl_product")->where('product_name','Like','%'.$keywords.'%')->paginate(24);

         return view('pages.product.search')->with("search_phim",$search_phim);
     }


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire