登录注册功能

This commit is contained in:
2025-05-05 09:44:50 +08:00
parent db54446f8b
commit 147b2d3fd5
29 changed files with 552 additions and 60 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use App\BaseApp\BaseModel;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* 分类表
*/
class CategoryModel extends BaseModel
{
//
protected $table = 'categories';
protected $guarded = [];
/**
* 项目
* @return HasMany
*/
public function projects(): HasMany
{
return $this->hasMany(ProjectModel::class, 'category_id', 'id');
}
}