Support the ongoing development of Laravel.io →
posted 2 years ago
Laravel
Last updated by @erikspriadi 2 years ago.
0

Share the part of code where you are using Post::where()

0
moderator

Does your Post class extend the eloquent model class?

Like

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{

}
Last updated 2 years ago.
0

Did you create the model manually or using the php artisan make:model command?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.