#Non-static method App\Models\Department::create() cannot be called statically

2 messages · Page 1 of 1 (latest)

drifting geode
#

When I try to access the /departments route and create a new department, I keep getting an error like "Non-static method ... cannot be called statically" Even though I already have:
class Department extends Illuminate\Database\Eloquent\Model
Any idea what’s going wrong?

native dagger