for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Squareetlabs\AuthorizeNet\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserGatewayProfile extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'user_gateway_profiles';
* The attributes that are mass assignable.
* @var array<int, string>
protected $fillable = [
'user_id',
'profile_id',
];
* The attributes that should be cast.
* @var array<string, string>
protected $casts = [
'created_at' => 'datetime',
'updated_at' => 'datetime',
* Get the user that owns the gateway profile.
* @return BelongsTo
public function user(): BelongsTo
return $this->belongsTo(config('auth.providers.users.model', 'App\Models\User'));
}