You've already forked Atomcms-edit
21 lines
479 B
PHP
Executable File
21 lines
479 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class WebsiteUsedShopVoucher extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
#[\Override]
|
|
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'voucher_id'];
|
|
|
|
public function used(): HasMany
|
|
{
|
|
return $this->hasMany(WebsiteUsedShopVoucher::class, 'voucher_id');
|
|
}
|
|
}
|