Description
Hii,
I am creating news section in laravel website, I created admin and the news data is saving in database, also showing on All news page but If I click on particular news link the single post page needs to be generated automatically
But now I am creating those pages manually and creating routes manually for single post page
Example your website link auto created when I created in admin
https://solutions.cdlcell.com/post/laravel-news-section-Wcx
Your help will be appreciated!!
View Code
<td><?php $slug = Str::slug($news->title); ?>
<h3 class="blog-title"><a href="{{ route('news.show', $slug) }}" class="post-meta">{{$news->title}}</a></h3>
{{$limit=Str::limit($news->description, 100);}}
<h6 style=" font-size: 14px; color: #ccc; ">{{$news->Date}}</h6>
<div class="text-left"><a href="{{ route('news.show', $slug) }}" class="read-more">Read more</a></div>
</td>
0 Likes 0 Comments