Added visibled checkbox and little changes

This commit is contained in:
2022-02-16 11:12:42 +01:00
parent b4e14b3151
commit 1d89f724f9
7 changed files with 35 additions and 12 deletions

View File

@@ -14,7 +14,9 @@ class ProjectController
public function __construct(
private ProjectRepository $projectRepository
) {}
) {
$this->projectRepository->auth = true;
}
public function edit(Project $project): View
{

View File

@@ -32,6 +32,7 @@ class ProjectRequest extends FormRequest
'project_url' => 'nullable|string',
'project_version' => 'nullable|string',
'description' => 'nullable|string',
'visible' => 'nullable|in:yes,1,true,on'
];
}
}

View File

@@ -24,7 +24,7 @@ class ProjectResource extends JsonResource
'author' => $this->author,
'images' => $this->images,
'release_date' => $this->release_date,
'update_date' => $this->release_date,
'update_date' => $this->update_date,
'project_url' => $this->project_url,
'project_version' => $this->project_version,
'description' => $this->description,