24 lines
379 B
PHP
24 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Receipt extends Model
|
|
{
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
|
|
public function store()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
|
|
public function receipt_items()
|
|
{
|
|
return $this->hasMany('App\Models\ReceiptItem');
|
|
}
|
|
}
|