Level 4
fillable is spelled wrong
protected $fillabe = ['item_id','user_id'];
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am getting the above error yet i have fillable property in place.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Like extends Model
{
use HasFactory;
protected $fillabe = ['item_id','user_id'];
public function user(){
return $this->belongsTo(User::class);
}
public function item(){
return $this->belongsTo(Item::class);
}
}
fillable is spelled wrong
protected $fillabe = ['item_id','user_id'];
Please or to participate in this conversation.