Create the projects part.

This commit is contained in:
2025-01-22 16:37:24 +01:00
parent 0e712a3412
commit 83cea92630
13 changed files with 829 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Http\Controllers;
use App\Models\Project;
use Illuminate\Contracts\View\View;
class ProjectController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(): View
{
return view('projects.index');
}
/**
* Show the form for creating a new resource.
*/
public function create(): View
{
return view('projects.create');
}
/**
* Display the specified resource.
*/
public function show(Project $project): View
{
return view('projects.show', ['project' => $project]);
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Project $project): View
{
return view('projects.edit', ['project' => $project]);
}
}