eloquent mode php code example
Example 1: how to create model in laravel
php artisan make:model Flight
Example 2: larave Soft Deletes
Schema::table('flights', function (Blueprint $table) {
$table->softDeletes();
});
php artisan make:model Flight
Schema::table('flights', function (Blueprint $table) {
$table->softDeletes();
});