Files
tbbank-new/app/Modules/Card/Models/Card.php
2025-10-23 00:15:55 +05:00

37 lines
785 B
PHP

<?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);
}
}