Step 5 – Create your Media Model (You can use an Alias if you want difining it in config/app.php ):

namespace appModels;

use IlluminateDatabaseEloquentModel;
class MyMediaClass extends Model {

    protected $table = 'media';
    protected $fillable = ['name','path','description','ext','gallery_id','status'];
    protected $guarded = ['id'];
}