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.
24 lines
469 B
PHTML
24 lines
469 B
PHTML
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Setting;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class HomeController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
return inertia('Home', [
|
||
|
'app_name' => Setting::where('key', 'app_name')->value('value'),
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function check(Request $request)
|
||
|
{
|
||
|
$request->validate([
|
||
|
'customer_code' => 'required|string|exists:customers,code'
|
||
|
]);
|
||
|
}
|
||
|
}
|