Route isn’t redirecting me to the correct page. It just shows me the same page but the url changes

I’ve made a blog template but I having trouble making the routes. When I click on the link, it should redirect me to the article page. Instead it just redirects me to the same page/same exact location. Here’s my code:

<section id="about" class="ts-block" >
<div id="cards_landscape_wrap-2">
<div class="container">
<div class="row">
@foreach($blogs as $blog)
<div class="col-lg-4">
<a href=>
<div class="card-flyer" >
<div class="text-box">
<div class="image-box ">
<img src="/images/blogs/" alt="" class="img-fluid rounded mx-auto d-block" width="100%"/>
</div>
<div class="text-container">
<h6></h6>
<p style="max-width: 18rem;"class="ts-opacity__50"></p>
</div>
<div class="card-footer">
<span class="text-primary font-weight-bold">Read</span>
</div>
</div>
</div>
</a>
</div>
@endforeach
</div>
</div>
</div>
</section>

BlogController :

public function getArticles()
{
return view('blog')->with([
'blogs' => Blog::all(),
]);
}

Routes :

Route::get('/blog/', [AppHttpControllersBlogController::class, 'index'])->name('blog');
Route::get('blogs/','[email protected]')->name('blogs.show');
Route::get('/admin/blog', '[email protected]')->name('admin.blog');
Route::resource('/blog','AppHttpControllersBlogController');

The routes that supposed to be redirecting me to another page is the 2nd one with [email protected]. The other routes are fine a have no problem.

Can someone kindly show me what I did wrong ?

from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/3B8G6cx
via IFTTT

Related Posts

Codeigniter : Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE) in Laravel project

I’m getting following error: **Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE)** Note : It’s working in local but facing issue in production server. private…

Firebase receive notification while tab is active or on focus

What i want is to be able to perform an action when a user receives a notification while the browser is open and tab is active or…

Laravel’s alias loader does not find class

We have a legacy project that we cannot update and we need to make some changes in symfony’s Response.php in vendor. We have solved this by copying…

Laravel 5 – generic document management

I have a system where you can create different types of unique documents. For instance, one document is called Project Identified and this expects certain inputs. Originally,…

Laravel Nova limit the results in indexQuery

I ran intro a situation where I need to limit the results of a resource to only 3 results. To be more specific, based on the logged…

Auditoria en laravel 5.8 [closed]

Cómo puedo automatizar el registro de actividades de un usuario en laravel? Si un usuario ingresa a un app de laravel, debo guardar toda su actividas, a…

Leave a Reply

Your email address will not be published.