if we give table name in laravel model like array: protected $table = ['thoughts']; then it will generate error. so you should give table name as string like : protected $table = 'thoughts';