Skip to content

Instantly share code, notes, and snippets.

@devellopah
Last active February 24, 2023 23:42
Show Gist options
  • Save devellopah/2116ee70cbec8562cddbfe83c6a4c9bb to your computer and use it in GitHub Desktop.
Save devellopah/2116ee70cbec8562cddbfe83c6a4c9bb to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Inertia\Inertia;
use Inertia\Response;
class MyController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(): Response
{
return Inertia::render('', [
]);
}
/**
* Show the form for creating a new resource.
*/
public function create(): Response
{
return Inertia::render('', [
]);
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
{
//
}
/**
* Display the specified resource.
*/
public function show(string $id): Response
{
return Inertia::render('', [
]);
}
/**
* Show the form for editing the specified resource.
*/
public function edit(string $id): Response
{
return Inertia::render('', [
]);
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id): RedirectResponse
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id): RedirectResponse
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment