xxxxxxxxxx
public $table = "dpl_user";
protected $fillable = [ 'user_id', 'fname', 'lname', 'email', 'phone', 'msg'];
xxxxxxxxxx
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Flight extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'my_flights';
}
xxxxxxxxxx
$table->string('experience')->default('beginner');
$table->integer('years_played')->default('0');
$table->string('avatar')->default('uploads/avatars/default.jpg');