add seeder for post & routing for list of post

This commit is contained in:
jenoh
2020-03-13 16:15:48 +01:00
parent 9f7ebbc3d0
commit 092e42e197
7 changed files with 123 additions and 2 deletions

14
app/Post.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'title', 'content'
];
protected $table = 'posts';
}