Last active
January 11, 2022 15:10
-
-
Save dominiquevienne/207821bcf3413c927b70eda9dc3b91c6 to your computer and use it in GitHub Desktop.
Updated $fillable in order to fill title, content and authorName
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Database\Eloquent\Model; | |
class BlogPost extends Model | |
{ | |
use HasFactory; | |
protected $fillable = [ | |
'title', | |
'content', | |
'author_name', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment