Laravel Model TableName
protected $table = 'DomainRelatedSettings';
Asif Patel
protected $table = 'DomainRelatedSettings';
public $table = "dpl_user";
protected $fillable = [ 'user_id', 'fname', 'lname', 'email', 'phone', 'msg'];
<?php
$flights = App\Models\Flight::all();
foreach ($flights as $flight) {
echo $flight->name;
}