generated from thegrind/laravel-dockerized
22 lines
410 B
PHP
22 lines
410 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class AuthenticationToken extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function application(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Application::class);
|
|
}
|
|
}
|