You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class WebsiteUsedShopVoucher extends Model
|
||||
{
|
||||
#[\Override]
|
||||
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'voucher_id'];
|
||||
|
||||
public function used(): HasMany
|
||||
{
|
||||
return $this->hasMany(WebsiteUsedShopVoucher::class, 'voucher_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user