laravel table in model

221

laravel model tablename -

protected $table = 'DomainRelatedSettings';

laravel find query -

<?php

$flights = App\Models\Flight::all();

foreach ($flights as $flight) {
    echo $flight->name;
}

Comments

Submit
0 Comments