done crud spatial plannings

This commit is contained in:
arifal
2025-02-20 15:35:06 +07:00
parent 54146c8c08
commit 7a56735099
19 changed files with 788 additions and 51 deletions

View File

@@ -2,63 +2,27 @@
namespace App\Http\Controllers;
use App\Models\SpatialPlanning;
use Illuminate\Http\Request;
class SpatialPlanningsController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
return view('spatial-plannings.index');
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
return view('spatial-plannings.create');
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(string $id)
{
return view('spatial-plannings.update');
$data = SpatialPlanning::findOrFail($id);
return view('spatial-plannings.update', compact('data'));
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
public function upload (){
return view('spatial-plannings.upload');
}
}