Eloquent Model Conventions: Table Names

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Flight extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'my_flights';
}

By convention, the "snake case", plural name of the class will be used as the table name unless another name is explicitly specified.

Eloquent Model Conventions: Table Names — Structure map

Clickable & Draggable!

Eloquent Model Conventions: Table Names — Related pages: