Token.php 456 B

12345678910111213141516171819202122
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace App\Core\Auth\Classes;
  8. use ORM\Entity as Entity;
  9. use App\Core\Auth\Classes\User as User;
  10. class Token extends Entity{
  11. const _tableName = "auth_token";
  12. function user(){
  13. return $this->belongsTo(User::class, 'user_id')->get();
  14. }
  15. }