MIF_E31222881/app/Http/Controllers/SantriController.php

61 lines
1.1 KiB
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Santri;
use Illuminate\Http\Request;
use Inertia\Inertia;
class SantriController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
$santri = Santri::all();
return Inertia::render('list-admin/santri/IndexSantri', compact('santri'));
}
public function create() {}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Santri $santri)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Santri $santri)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Santri $santri)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Santri $santri)
{
//
}
}