Added visibled checkbox and little changes
This commit is contained in:
@@ -14,7 +14,9 @@ class ProjectController
|
||||
|
||||
public function __construct(
|
||||
private ProjectRepository $projectRepository
|
||||
) {}
|
||||
) {
|
||||
$this->projectRepository->auth = true;
|
||||
}
|
||||
|
||||
public function edit(Project $project): View
|
||||
{
|
||||
|
@@ -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'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user