1 /**
2 * The attributes that are mass assignable.
3 */
4 protected $fillable = [
5 'title',
6 'slug',
7 'body',
8 'image',
9 'published',
10 'comments_open'
11 ];
1public $table = "dpl_user";
2
3protected $fillable = [ 'user_id', 'fname', 'lname', 'email', 'phone', 'msg'];
1<?php
2
3$flights = App\Models\Flight::all();
4
5foreach ($flights as $flight) {
6 echo $flight->name;
7}