1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Builder;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- use Illuminate\Notifications\Notifiable;
- use Laravel\Sanctum\HasApiTokens;
- /**
- * Admin
- * @mixin Builder
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
- */
- class RoleMenu extends Authenticatable
- {
- use HasApiTokens, Notifiable;
- protected $table = 'role_menu';
- protected $hidden = ['created_at', 'updated_at'];
- protected $fillable = ['menu_id', 'role_id' ];
- // protected function getCreatedAtAttribute($value)
- // {
- // return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
- // }
- // protected function getUpdatedAtAttribute($value)
- // {
- // return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
- // }
- }
|