30 lines
576 B
PHP
30 lines
576 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
|
|
#[Fillable(['user_id', 'app_id', 'type'])]
|
|
class UserAppOverride extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* Get the user this override belongs to.
|
|
*/
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
/**
|
|
* Get the app/service being overridden.
|
|
*/
|
|
public function app()
|
|
{
|
|
return $this->belongsTo(App::class);
|
|
}
|
|
}
|