Advertisement
nugrohoe_ku

model rest api auth with myth auth

Jan 29th, 2021
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php namespace App\Models;
  2.  
  3. use Myth\Auth\Models\UserModel as MythModel;
  4. use App\Entities\User;
  5.  
  6. class UserModel extends MythModel
  7. {
  8.     protected $returnType = User::class;
  9.  
  10.     protected $allowedFields = [
  11.         'email', 'username', 'password_hash', 'reset_hash', 'reset_at', 'reset_expires', 'activate_hash',
  12.         'status', 'status_message', 'active', 'force_pass_reset', 'permissions', 'deleted_at',
  13.         'phone', 'fullname', 'avatar', 'nik', 'address', 'token_fcm'
  14.     ];
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement