You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/app/Http/Controllers/ShippingEntryController.php

31 lines
755 B
PHTML

3 months ago
<?php
namespace App\Http\Controllers;
use App\Http\Requests\ShippingEntryRequest;
use App\Models\ShippingEntry;
use Illuminate\Http\RedirectResponse;
3 months ago
use Illuminate\Http\Request;
class ShippingEntryController extends Controller
{
public function index(): void {}
3 months ago
public function create(): void {}
3 months ago
public function store(ShippingEntryRequest $request): RedirectResponse
3 months ago
{
$entry = ShippingEntry::create($request->validated());
return redirect()->route('customers.show', [$entry->customer, 'tab' => 'shipping']);
}
public function show(int $id): void {}
3 months ago
public function edit(int $id): void {}
3 months ago
public function update(Request $request, int $id): void {}
3 months ago
public function destroy(int $id): void {}
3 months ago
}