Guest User

Untitled

a guest
Dec 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. tableHtml += "<td><a href= '{{url('/add')}}/" + data.hits[i].recipe.label + "'> add to favotite</a></td>";
  2.  
  3. Route::get('/add', 'HomeController@add');
  4.  
  5. public function add(Request $request)
  6. {
  7.  
  8. $request->get("") ////////////how can i get the string i passed on url
  9.  
  10. }
Add Comment
Please, Sign In to add comment