Skip to content

Instantly share code, notes, and snippets.

@dominiquevienne
Last active January 11, 2022 15:10
Show Gist options
  • Save dominiquevienne/207821bcf3413c927b70eda9dc3b91c6 to your computer and use it in GitHub Desktop.
Save dominiquevienne/207821bcf3413c927b70eda9dc3b91c6 to your computer and use it in GitHub Desktop.
Updated $fillable in order to fill title, content and authorName
<?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