Edit file File name : CashRegister.php Content :<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @method static LEFTJOIN(string $string, string $string1, string $string2, string $string3) * @method static create(array $array) */ class CashRegister extends Model { /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'denominations' => 'array', ]; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; /** * Get the Cash registers transactions. */ public function cash_register_transactions() { return $this->hasMany(\App\CashRegisterTransaction::class); } } Save