dimanche 31 mai 2015

Laravel 4.2 link to action links & as %27

hello I have the following line:

{{ link_to_action('FriendController@add', 'Friend ' .explode(" ", $user->name)[0],[Auth::user()->id,$user->id]) }}

and a route defined as

Route::post('friend/add{id}&{fid}', ['as' => 'friend.add', 'uses' => 'FriendController@add']);

however the url isn't parsing the 2 arguments correctly as it comes up as /add1%262 instead of /add?1&2

I cant figure out why, it was working before. Also it comes up with method [show] does not exist when it does go through.




Aucun commentaire:

Enregistrer un commentaire