Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

Your code looks okay, are you sure you have correct database info in your /app/config/database.php ? Be sure your table has name "jobs" not "job".

Last updated 1 year ago.
0

nipid is right you either change your class name to Jobs or you define a custom table name with the table property like so:

class Job extends Eloquent {

    protected $table = 'jobs';

}
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

marauf marauf Joined 17 Apr 2014

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.