登录注册功能

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

26
app/Models/LabelModel.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use App\BaseApp\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
/**
* 标签表
*/
class LabelModel extends BaseModel
{
//
protected $table = 'labels';
protected $guarded = [];
/**
* 项目关联
* @return BelongsToMany
*/
public function projects(): BelongsToMany
{
return $this->belongsToMany(ProjectModel::class, 'project_labels_relations', 'label_id', 'project_id');
}
}