How to send data using redirect with Laravel

前端 未结 3 1540
借酒劲吻你
借酒劲吻你 2020-12-05 23:41

I developed an API to show a pop up message when the page loaded.

Not all the pages use the pop up API. For example, if the user go to the show($id) pag

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 00:09

    Yes you can define path in route like below:

    Route::get('store/{id?}/{param1?}/{param2?}/{param3?}', 'clients@store');
    

    You can pass multiple parameter in function and read in controller by passing argument..

    You can define in controller :

    public function store(id, param1,param2,param3){
    //read the param values
    }
    

提交回复
热议问题