- add delete project page
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user