• 大小: 0.13M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: PHP
  • 标签: API  登陆  下载  源码  注册  

资源简介


代码片段和文件信息


namespace App;

use Illuminate\Auth\Authenticatable;
use Laravel\Lumen\Auth\Authorizable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;

class User extends Model implements
    AuthenticatableContract
    AuthorizableContract
{
    use Authenticatable Authorizable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        ‘username‘ ‘email‘ ‘api_token‘
    ];

    /**
     * The attributes excluded from the model‘s JSON form.
     *
     * @var array
     */
    protected $hidden = [
        ‘password‘
    ];
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-04-14 00:07  ####\
     文件       33265  2016-04-14 00:07  ####\login_success.jpg
     文件       25776  2016-04-14 00:07  ####\login_token.jpg
     文件        2518  2016-04-14 00:07  ####\lumenauth.sql
     文件       35495  2016-04-14 00:07  ####\register_success.jpg
     文件       45191  2016-04-14 00:07  ####\user_info.jpg
     文件         211  2016-04-14 00:07  .env.example
     文件          13  2016-04-14 00:07  .gitignore
     目录           0  2016-04-14 00:07  app\
     目录           0  2016-04-14 00:07  app\Console\
     目录           0  2016-04-14 00:07  app\Console\Commands\
     文件           0  2016-04-14 00:07  app\Console\Commands\.gitkeep
     文件         546  2016-04-14 00:07  app\Console\Kernel.php
     目录           0  2016-04-14 00:07  app\Events\
     文件         121  2016-04-14 00:07  app\Events\Event.php
     文件         203  2016-04-14 00:07  app\Events\ExampleEvent.php
     目录           0  2016-04-14 00:07  app\Exceptions\
     文件        1224  2016-04-14 00:07  app\Exceptions\Handler.php
     目录           0  2016-04-14 00:07  app\Http\
     目录           0  2016-04-14 00:07  app\Http\Controllers\
     文件         148  2016-04-14 00:07  app\Http\Controllers\Controller.php
     文件         236  2016-04-14 00:07  app\Http\Controllers\ExampleController.php
     文件        1564  2016-04-14 00:07  app\Http\Controllers\UserController.php
     目录           0  2016-04-14 00:07  app\Http\Middleware\
     文件         911  2016-04-14 00:07  app\Http\Middleware\Authenticate.php
     文件         235  2016-04-14 00:07  app\Http\Middleware\AuthToken.php
     文件         337  2016-04-14 00:07  app\Http\Middleware\ExampleMiddleware.php
     文件         665  2016-04-14 00:07  app\Http\routes.php
     目录           0  2016-04-14 00:07  app\Jobs\
     文件         315  2016-04-14 00:07  app\Jobs\ExampleJob.php
     文件         720  2016-04-14 00:07  app\Jobs\Job.php
............此处省略39个文件信息

评论

共有 条评论