A
A
Alexey Merzlyakov2017-10-27 12:11:40
Laravel
Alexey Merzlyakov, 2017-10-27 12:11:40

Get value of Get parameter in Laravel framework Blade template?

There is an address like MyDomain.loc/#home
How to get the value #home in laravel framework blade template?
Tried URL::current() outputs only MyDomain.loc

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Golovko, 2017-10-27
@alexam84

The hash is not a GET parameter.
You can get it with js after the page is loaded

B
Barmunk, 2017-10-27
@Barmunk

It is difficult to get, but there are options:
process an existing link
Receive via js and do something (for example, put it in cookies and then pick it up via php) or even send it using the post method:

<script>$('#LocationHash').val(document.location.hash.replace('#',''));</script>
<input type="hidden" id="LocationHash" name="LocationHash" value="">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question