eloquent all laravel code example
Example 1: larave Soft Deletes
Schema::table('flights', function (Blueprint $table) {
$table->softDeletes();
});
Example 2: laravel eloquent fill
$flight->fill(['name' => 'Flight 22']);
Schema::table('flights', function (Blueprint $table) {
$table->softDeletes();
});
$flight->fill(['name' => 'Flight 22']);