Laravel Eloquent: Defining Models

Php artisan make:model Flight
Php artisan make:model Flight --migration

php artisan make:model Flight -m

Typically live in the app directory, but you are free to place them anywhere.

Eloquent Model Conventions

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Flight extends Model
{
    //
}

Laravel Eloquent: Defining Models — Structure map

Clickable & Draggable!

Laravel Eloquent: Defining Models — Related pages: