some stan

This commit is contained in:
nurmuhammet committed 2025-10-23 00:15:55 +05:00
1 parent 85df3ec412
commit d8c340028c
10 files changed
+203 -10

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
<?php
namespace App\Modules\Card\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $user_id
* @property string $number
* @property string $name
* @property string $month
* @property string $year
* @property string|null $type
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
class Card extends Model
{
/**
* The table associated with the model.
*/
protected $table = 'cards';
/**
* Get the user that owns the card.
*
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}