Created
July 27, 2022 06:17
-
-
Save Faizanq/f7096495a66080e15c31d6ea55e98b7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Models\Customer; | |
use App\Http\Requests\NewCustomerRequest; | |
class CustomerController extends Controller | |
{ | |
public function store(NewCustomerRequest $request) | |
{ | |
$data = $request->all(); | |
Customer::create($data); | |
return [ | |
'saved' => true | |
]; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment