Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tableHtml += "<td><a href= '{{url('/add')}}/" + data.hits[i].recipe.label + "'> add to favotite</a></td>";
- Route::get('/add', 'HomeController@add');
- public function add(Request $request)
- {
- $request->get("") ////////////how can i get the string i passed on url
- }
Add Comment
Please, Sign In to add comment