Laravel 9 Tutorial #18 | Create Laravel 9 MultiVendor Ecommerce Website | Update Vendor Detail (III)

Laravel 9 Tutorial #18 | Create Laravel 9 MultiVendor Ecommerce Website | Update Vendor Detail (III)

Stack Developers

2 года назад

4,473 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@naderelmor4767
@naderelmor4767 - 08.01.2023 01:33

hi, why do you use toArray() instead of use $admindetails->anything in the blade ?

Ответить
@alinatariq7993
@alinatariq7993 - 30.11.2022 15:30

sir..!! As I logout then login with vendor admin email and password. It's show invalid email address and password.. I given the same password as u.. kindly tell me. Where I'm wrong

Ответить
@sergiofalomirherrera9755
@sergiofalomirherrera9755 - 30.09.2022 21:41

with VENDOR do you mean Supplier?????

Ответить
@alimammadov2610
@alimammadov2610 - 23.08.2022 13:12

Thanks so much for this great tutorial. With the help of these series I am able to understand the Laravel concept. One quick question: at the final stage for updating db, we are doing two seperate queries (one for vendor, one for admin table) in order to insert the data. Wouldn't it be possible to merge the db tables and update in one query? Thanks.

Ответить
@iCOBD
@iCOBD - 25.07.2022 21:01

//Error name
Call to a member function toArray() on null


//Controller
public function UpdateVendorDetails($slug, Request $request){
if($slug == "personal"){
if($request->isMethod('post')){
$data = $request->all();
echo "<pre>"; print_r($data); die;
}



$vendorDetails = Vendor::where('id', Auth::guard('admin')->user()->vendor_id)->first()->toArray();

}else if($slug == "business"){

}else if($slug == "bank"){

}

return view('backend.settings.update_vendor_details', compact('slug', 'vendorDetails'));
}





// Blade file
<input type="text" name="vendor_address" value="{{ $vendorDetails['address'] }}" class="form-control" id="vendor_address" >

Ответить
@shakirahmed8137
@shakirahmed8137 - 08.06.2022 21:28

compact(): Undefined variable: vendordetails

Ответить
@melkor6339
@melkor6339 - 18.05.2022 23:59

Absolutely amazing tutorial and you have my heartfelt gratitude as your explanations are on point and amazing. I have an issue which I solved by adding this to the updateVendorDetails method in AdminController
return view('admin.settings.update_vendor_details', compact(['slug', 'vendorDetails']));
I wasn't able to use $vendorDetails in view when defined in the if statement so this was the only way I could use it. I had everything in controller, routes and view same as you yet I would keep Undefined variable $vendorDetails error. Do you have any idea why would that happen ?

Ответить
@greenlinefoundation4340
@greenlinefoundation4340 - 09.04.2022 10:38

admin update password page

Ответить
@shakeebgujjar6752
@shakeebgujjar6752 - 26.03.2022 14:38

hello,
Sir, when will you upload all the videos of this project completion ?

Ответить
@md.abdulhalim
@md.abdulhalim - 25.03.2022 21:17

Thanks a lot sir, for giving the video.

Ответить
@pushpenbanerjee9625
@pushpenbanerjee9625 - 25.03.2022 00:29

Love You Sir.

Ответить
@beticohernandez9536
@beticohernandez9536 - 24.03.2022 18:18

Hello.
Do you still need to go to the administration?

Ответить