|
@@ -2,34 +2,8 @@
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
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 Keyboard extends Authenticatable
|
|
|
|
|
|
|
+class Keyboard extends BaseModel
|
|
|
{
|
|
{
|
|
|
- use HasApiTokens, Notifiable;
|
|
|
|
|
-
|
|
|
|
|
protected $table = 'keyboard';
|
|
protected $table = 'keyboard';
|
|
|
- // protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
protected $fillable = ['button', 'reply', 'id', 'buttons', 'image', 'language', 'explain'];
|
|
protected $fillable = ['button', 'reply', 'id', 'buttons', 'image', 'language', 'explain'];
|
|
|
-
|
|
|
|
|
- // protected $appends = ['menus_ids', 'menus_uris'];
|
|
|
|
|
-
|
|
|
|
|
- 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');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|