Anyone know how to get data in array format in response?

|
arxnday 2022-03-19 13:26:38
MVC
vishalsharma19 2022-03-19 15:30:50
Register your private Limited Company at just Rs. 7999/-

– 2 Digital Signatures
– Name Reservation
– Director Identification Number (DIN)
– GST Registration
– Startup India Registration
– MSME Registration
– PAN
– TAN

Amit Sharma 2022-03-19 15:45:57
anyone know how to get data in array format in response ?
Amit Sharma 2022-03-19 15:46:09
public function GetBusiness(Request $req){
$getBusiness = Business::where(‘userId’, $req->userId)->first();
if ($getBusiness) {
return response()->json([
‘success’ => true,
‘message’ => ‘Business Record of this User.’,
‘data’ => [
‘id’=>$getBusiness->id,
‘businessName’=>$getBusiness->businessName,
‘description’=>$getBusiness->description,
‘businessEmail’=>$getBusiness->businessEmail,
‘businessAddress’=>$getBusiness->businessAddress,
‘businessMobile’=>$getBusiness->businessMobile
]
]);
Amit Sharma 2022-03-19 15:47:00
there may be multiple data for userId i want all of them in response
DayGrowing 2022-03-19 15:57:44
laravel_discuss-112212.jpg

DayGrowing 2022-03-19 15:57:57
Please I need help on this…
DayGrowing 2022-03-19 15:58:14
Can someone help me out please, Laravel 9…
Sridharanyuvaraja 2022-03-19 16:20:33
Hi Everyone

We created multi tenent E-commerce website in Laravel

Which anyone create e-commerce website

Ecomrental.com

If anyone needs to purchase this project, please let us know

bsamaasi 2022-03-19 16:21:46
DayGrowing 2022-03-19 15:58:14
Can someone help me out please, Laravel 9…

That class is found at illuminate support facade…. Your namespace is wrong

DayGrowing 2022-03-19 16:23:27
bsamaasi 2022-03-19 16:21:46
That class is found at illuminate support facade…. Your namespace is wrong

Okay, where can I found the found the facade folder…

bsamaasi 2022-03-19 16:25:47
Your editor should help you do that… note: namespace != folder. Or use the helper method
bsamaasi 2022-03-19 16:26:41
In your case it will be auth()->user()->userType
DayGrowing 2022-03-19 16:30:21
bsamaasi 2022-03-19 16:26:41
In your case it will be auth()->user()->userType

Yes boss, I’m on it, I will give you feedback soon…

DayGrowing 2022-03-19 16:30:31
Thanks so much…
Mr. N♡ ♡N€🇮🇳 2022-03-19 16:33:57
Amit Sharma 2022-03-19 15:47:00
there may be multiple data for userId i want all of them in response

Instead of first method you u can use get method after that I will receive multiple business based on user id

After that You can pass whole data in response or apply loop on that data and make your response as per requirement

Amit Sharma 2022-03-19 16:34:21
thanks big bro i got it this
DayGrowing 2022-03-19 16:34:36
bsamaasi 2022-03-19 16:25:47
Your editor should help you do that… note: namespace != folder. Or use the helper method

👍 successful: thank you so much boss…

Gidi 2022-03-19 17:18:43
Hello fellow devs

i need helphere

what marks difference between web dev and cloud computing please

voskcoinsupport 2022-03-19 18:31:06
last question I posted here I didn’t get a reply from anyone here
voskcoinsupport 2022-03-19 18:31:19
please this one is very important
voskcoinsupport 2022-03-19 18:33:05
this is my livewire user update profile… After submitting it doesn’t update the profile it jus reload the page
voskcoinsupport 2022-03-19 18:39:36
voskcoinsupport 2022-03-19 18:33:05
this is my livewire user update profile… After submitting it doesn’t update the profile it jus reload the page

this only happens to user name and email others works fields perfectly

bsamaasi 2022-03-19 18:41:30
voskcoinsupport 2022-03-19 18:39:36
this only happens to user name and email others works fields perfectly

Show your code, not your

bsamaasi 2022-03-19 18:42:47
Gidi 2022-03-19 17:18:43
Hello fellow devs

i need helphere

what marks difference between web dev and cloud computing please

Google is a better help

voskcoinsupport 2022-03-19 18:44:59
bsamaasi 2022-03-19 18:41:30
Show your code, not your

@if (LaravelFortifyFeatures::canUpdateProfileInformation())
@livewire(‘profile.update-profile-information-form’)
@endif

voskcoinsupport 2022-03-19 18:45:17
<div class=”col-span-6 sm:col-span-4″>
<x-jet-label for=”name” value=”{{ (‘Name’) }}” />
<x-jet-input id=”name” type=”text” class=”mt-1 block w-full” wire:model.defer=”state.name” autocomplete=”name” />
<x-jet-input-error for=”name” class=”mt-2″ />
</div>

<!– Email –>
<div class=”col-span-6 sm:col-span-4″>
<x-jet-label for=”email” value=”{{ (‘Email’) }}” />
<x-jet-input id=”email” type=”email” class=”mt-1 block w-full” wire:model.defer=”state.email” />
<x-jet-input-error for=”email” class=”mt-2″ />
</div>
</x-slot>

<x-slot name=”actions”>
<x-jet-action-message class=”mr-3″ on=”saved”>
{{ (‘Saved.’) }}
</x-jet-action-message>

<x-jet-button wire:loading.attr=”disabled” wire:target=”photo”>
{{ (‘Save’) }}
</x-jet-button>
</x-slot>

bsamaasi 2022-03-19 18:47:48
voskcoinsupport 2022-03-19 18:45:17
<div class=”col-span-6 sm:col-span-4″>
<x-jet-label for=”name” value=”{{ (‘Name’) }}” />
<x-jet-input id=”name” type=”text” class=”mt-1 block w-full” wire:model.defer=”state.name” autocomplete=”name” />
<x-jet-input-error for=”name” class=”mt-2″ />
</div>

<!– Email –>
<div class=”col-span-6 sm:col-span-4″>
<x-jet-label for=”email” value=”{{ (‘Email’) }}” />
<x-jet-input id=”email” type=”email” class=”mt-1 block w-full” wire:model.defer=”state.email” />
<x-jet-input-error for=”email” class=”mt-2″ />
</div>
</x-slot>

<x-slot name=”actions”>
<x-jet-action-message class=”mr-3″ on=”saved”>
{{ (‘Saved.’) }}
</x-jet-action-message>

<x-jet-button wire:loading.attr=”disabled” wire:target=”photo”>
{{ (‘Save’) }}
</x-jet-button>
</x-slot>

Component code

Anand Tujare 2022-03-19 19:44:35
SatanSaviour 2022-03-17 13:16:49
IlluminateRoutingExceptionsUrlGenerationException
Missing required parameter for [Route: subcategory.update] [URI: subcategory/{subcategory}] [Missing parameter: subcategory]. (View: C:xampphtdocsExamresourcesviewssubcategoryedit.blade.php)
http://127.0.0.1:8000/subcategory/1/edit

Looks like u r missing a parameter

Bright 2022-03-19 19:48:28
My membership movie subscription
Bright 2022-03-19 19:48:40
https://youtu.be/J4J7t-Ed6Zg

Laravel membership movie subscriptionYouTube
Laravel movie subscription with reset password, send email and search bar with pagination, if you want this project send me a message.my GitHub link https://…
Bright 2022-03-19 19:49:34
My main focus is on the backend
Mobillium 2022-03-19 21:20:43
$lims_product_variant_data = ProductVariant::select(‘item_code’)->FindExactProduct($product_warehouse->product_id, $product_warehouse->variant_id)->first();
$product_code[] = $lims_product_variant_data->item_code;

It’s saying Error: ErrorException
Trying to get property ‘item_code’ of non-object

If item_code is string type how to fix it?

udev21 2022-03-19 21:34:48
Mobillium 2022-03-19 21:20:43
$lims_product_variant_data = ProductVariant::select(‘item_code’)->FindExactProduct($product_warehouse->product_id, $product_warehouse->variant_id)->first();
$product_code[] = $lims_product_variant_data->item_code;

It’s saying Error: ErrorException
Trying to get property ‘item_code’ of non-object

If item_code is string type how to fix it?

$lims_product_variant_data is null and null object has no any property that’s why error

Manalalsubaei 2022-03-19 21:37:19
Hi everyone.
What is the method that does opposite the hash method?
|