1
This commit is contained in:
@@ -168,6 +168,7 @@ class BrandController extends BaseController
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$request->setPost('id',$id);
|
$request->setPost('id',$id);
|
||||||
|
$request->setPost('creater', $request->user['id']);
|
||||||
return $this->getService()->edit($request->all(), $id)
|
return $this->getService()->edit($request->all(), $id)
|
||||||
? $this->successResponse()
|
? $this->successResponse()
|
||||||
: $this->errorResponse();
|
: $this->errorResponse();
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ class VehicleNewController extends BaseController
|
|||||||
public function edit(Request $request, int $id): Response
|
public function edit(Request $request, int $id): Response
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$request->setPost('creater', $request->user['id']);
|
||||||
return $this->getService()->edit($request->all(), $id)
|
return $this->getService()->edit($request->all(), $id)
|
||||||
? $this->successResponse()
|
? $this->successResponse()
|
||||||
: $this->errorResponse();
|
: $this->errorResponse();
|
||||||
|
|||||||
Reference in New Issue
Block a user