初始化本地仓库
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\dao\plugin;
|
||||
|
||||
use app\model\plugin\ApplicationAuth;
|
||||
use core\base\BaseDao;
|
||||
|
||||
class ApplicationAuthDao extends BaseDao
|
||||
{
|
||||
protected function setModel(): string
|
||||
{
|
||||
return ApplicationAuth::class;
|
||||
}
|
||||
|
||||
public function get($id, ?array $field = null, ?array $with = ['createds', 'updateds'], string $order = '', ?array $withoutScopes = null): ?\Illuminate\Database\Eloquent\Model
|
||||
{
|
||||
return parent::get($id, $field, $with, $order, $withoutScopes);
|
||||
}
|
||||
|
||||
protected function getKeywordFields(): array
|
||||
{
|
||||
return ['name', 'access_key', 'description'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user