- add delete project page

This commit is contained in:
2023-07-28 13:34:34 +02:00
parent d0b3f9094c
commit af3aa905bd
4 changed files with 52 additions and 10 deletions

View File

@@ -6,7 +6,6 @@ use App\Http\Requests\ProjectRequest;
use App\Models\Project;
use App\Repository\Interfaces\ProjectRepository;
use Illuminate\Http\RedirectResponse;
use Illuminate\View\View;
use Inertia\Response as InertiaResponse;
class ProjectController
@@ -49,9 +48,9 @@ class ProjectController
return back()->withError(['message_error', 'Wystąpił błąd podczas tworzenia!']);
}
public function delete(Project $project): View
public function delete(Project $project): InertiaResponse
{
return view('dashboard.projects.delete', compact('project'));
return inertia('Projects/ConfirmDelete', compact('project'));
}
public function destroy(Project $project): RedirectResponse