How To Add Blog Url
How To Add Blog Url
php”
Edit the file and add this code,
Route::get('/blog', 'blogList')→name('blogs.list');
@section('css')
<!--<link href="{{URL::asset('plugins/awselect/awselect.min.css')}}" rel="stylesheet" />-->
<!-- <link href="{{URL::asset('plugins/slick/slick.css')}}" rel="stylesheet" />-->
<!--<link href="{{URL::asset('plugins/slick/slick-theme.css')}}" rel="stylesheet" />-->
<!-- <link href="{{URL::asset('plugins/aos/aos.css')}}" rel="stylesheet" />-->
<!-- <link href="{{URL::asset('plugins/animatedheadline/jquery.animatedheadline.css')}}"
rel="stylesheet" />-->
@endsection
@section('menu')
<div class="container secondary-navbar">
<div class="row">
@if (Route::has('login'))
<div id="login-buttons">
@auth
<a href="{{ route('user.templates') }}" class="action-button dashboard-button pl-5
pr-5">{{ __('Dashboard') }}</a>
@else
<a href="{{ route('login') }}" class="" id="login-button">{{ __('Sign In') }}</a>
@if (config('settings.registration') == 'enabled')
@if (Route::has('register'))
<a href="{{ route('register') }}" class="ml-2 action-button register-button pl-5
pr-5">{{ __('Sign Up') }}</a>
@endif
@endif
@endauth
</div>
@endif
</div>
</nav>
</div>
</div>
@endsection
@section('content')
@if (config('frontend.blogs_section') == 'on')
<section id="blog-wrapper">
<div class="container">
{{ $articles->links() }}
@else
<div class="row text-center">
<div class="col-sm-12 mt-6 mb-6">
<h6 class="fs-12 font-weight-bold text-center">{{ __('No blog articles were
published yet') }}</h6>
</div>
</div>
@endif
@section('js')
<!-- Awselect JS -->
<script src="{{URL::asset('plugins/awselect/awselect.min.js')}}"></script>
<script src="{{URL::asset('js/awselect.js')}}"></script>
<script src="{{URL::asset('js/minimize.js')}}"></script>
@endsection
<!-- END -->
// START
public function blogList()
{
$articles = Blog::paginate(2); // Change 10 to the number of articles per page you desire
$information['author'] = '';
$information['title'] = 'Our Blogs';
$information['keywords'] = '';
$information['description'] = '';