Files
Global-Jain/app/Models/UserMeta.php
2025-11-05 10:37:10 +05:30

40 lines
667 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserMeta extends Model
{
// use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'type',
'meta_key',
'meta_value',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'id' => 'integer',
'user_id' => 'integer',
];
public function user()
{
return $this->belongsTo(\App\Models\User::class);
}
}