I have the route below that redirects to the main page of my site ..
Route::group(['prefix' =>'site', 'namespace' => 'site'], function(){
Route::get('/', 'SiteController@index')->name('site');
I wanted to add an anchor to the div
services on my site thus:
localhost:8000/site#servicos
How do I do this in Laravel?
I've tried:
<a href='{{ route('site') }}#servicos'>Serviços</a>
<a href='#servicos'>Serviços</a>
<a href={{ route('site#servicos') }}'>Serviços</a>
<a href={{ url('site#servicos') }}>'Serviços</a>
<a href=/site#servicos>'Serviços</a>
They all change the URL but do not redirect to the div I need, suggestions?