init project
This commit is contained in:
20
app/Models/UserLabCover.php
Normal file
20
app/Models/UserLabCover.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class UserLabCover extends Authenticatable
|
||||
{
|
||||
|
||||
public function lab(){
|
||||
return $this->belongsTo('App\Models\Laboratory', 'lab_id','id');
|
||||
}
|
||||
|
||||
public function user(){
|
||||
return $this->belongsTo('App\Models\User', 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user