mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-06-13 10:09:19 +00:00
add seeder for post & routing for list of post
This commit is contained in:
18
resources/views/blog.blade.php
Normal file
18
resources/views/blog.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
@extends('layout')
|
||||
@section('title')
|
||||
<title>Blog</title>
|
||||
@endsection
|
||||
@section('content')
|
||||
|
||||
|
||||
<h1 style="color:black"> Nos articles : </h1>
|
||||
@foreach ($posts as $post)
|
||||
<div style="color:black; background-color: white; width:300px; height:40px;margin:auto">
|
||||
<h2>{{ $post->title }}</h2>
|
||||
<!-- <p>sdq</p> -->
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
@endsection
|
@ -5,6 +5,7 @@
|
||||
@section('content')
|
||||
<img src="img/app.png" weight=700px height=400px alt="">
|
||||
<br>
|
||||
<a href="{{ url('/blog') }}">Blog</a>
|
||||
<a href="{{ url('/contact-us') }}">Contactez-nous!</a>
|
||||
<a href="{{ url('/login') }}">Se connecter</a>
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user