jeudi 20 avril 2017

Reading URL #hastag in Laravel controller

I have a URL that has a #hashtag on it. For example

http://ift.tt/2pFS60F

In my routes I would have

Route::get('/foo/{loc}', ['uses' => 'FooController@show']);

In my controller I would have

public function show($loc)

What I want to be able to do is read the # value 'tab2' in my controller, but the value of $loc will always be 'location1'. How can I extract the hash value?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire