start add Memos
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\Models\Memo;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
@@ -42,4 +43,9 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->role === 2;
|
||||
}
|
||||
|
||||
public function memos()
|
||||
{
|
||||
return $this->hasMany(Memo::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user