mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-06-13 01:59:18 +00:00
add seeder for post & routing for list of post
This commit is contained in:
14
app/Post.php
Normal file
14
app/Post.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Post extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'title', 'content'
|
||||
];
|
||||
|
||||
protected $table = 'posts';
|
||||
}
|
Reference in New Issue
Block a user