class User extends Model { public static $tableName = 'users'; }
use Illuminate\Database\Eloquent\Model as Eloquent; class User extends Eloquent { protected $table = 'users'; }In this example, we are using the popular Laravel framework's Eloquent package library to define the User model. The $table property is used to specify the name of the users table in the database. Package Library: Eloquent ORM (Laravel Framework)