Support the ongoing development of Laravel.io →

BhavinShah2010

Joined 26 May 2016

Statistics

Threads 2
Replies 3
Solutions 0
Articles 0

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved

Passing Multiple Parameters through URL to Controller using Input::get('paramter1').

Hello, This is my route.php Route::get('test/{paramter1}/{paramter2}', 'Somecontroller@somemethod');...

0 Likes
1 Replies
replied 7 years ago

How to pass data to json from Database?

Hello jsonrust, I want data in JSON Object and then want to send JSON Object to somewhere using API....

0 Likes
replied 7 years ago

How to pass data to json from Database?

LaurentMeganck , Yes. I have to pass the json format data to somewhere using API. so can I use json...

0 Likes
replied 7 years ago

How to pass data to json from Database?

Hello, jasonrust You mean to say like this , return json_encode(User:all()); Thank You.

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.