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/PackingSlipController.php

38 lines
860 B
PHTML

3 months ago
<?php
namespace App\Http\Controllers;
use App\Http\Requests\PackingSlipRequest;
use App\Models\Customer;
use App\Models\PackingSlip;
use Illuminate\Http\Request;
class PackingSlipController extends Controller
{
3 months ago
public function index() {}
3 months ago
3 months ago
public function create() {}
3 months ago
public function store(PackingSlipRequest $request)
{
PackingSlip::create($request->validated());
3 months ago
if ($request->get('from_customer')) {
3 months ago
return redirect()->route('customers.show', [
Customer::find($request->get('customer_id')),
3 months ago
'tab' => 'packing',
3 months ago
]);
}
return redirect()->back(); //todo: change to packing slips page
}
3 months ago
public function show($id) {}
3 months ago
3 months ago
public function edit($id) {}
3 months ago
3 months ago
public function update(Request $request, $id) {}
3 months ago
3 months ago
public function destroy($id) {}
3 months ago
}