how to use DB request in laravel?
up vote
0
down vote
favorite
how to use DB request in laravel?
example
$var = DB::table(tableName)->get()
after
@foreach($var in $v)
{{ $v->id }}
@endfoereach
laravel
add a comment |
up vote
0
down vote
favorite
how to use DB request in laravel?
example
$var = DB::table(tableName)->get()
after
@foreach($var in $v)
{{ $v->id }}
@endfoereach
laravel
I think your foreach loop should beforeach($var as $v)
– rpm192
Nov 9 at 8:04
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
how to use DB request in laravel?
example
$var = DB::table(tableName)->get()
after
@foreach($var in $v)
{{ $v->id }}
@endfoereach
laravel
how to use DB request in laravel?
example
$var = DB::table(tableName)->get()
after
@foreach($var in $v)
{{ $v->id }}
@endfoereach
laravel
laravel
edited Nov 9 at 21:41
Graham
3,316123558
3,316123558
asked Nov 9 at 7:51
smsm mssonn
1
1
I think your foreach loop should beforeach($var as $v)
– rpm192
Nov 9 at 8:04
add a comment |
I think your foreach loop should beforeach($var as $v)
– rpm192
Nov 9 at 8:04
I think your foreach loop should be
foreach($var as $v)
– rpm192
Nov 9 at 8:04
I think your foreach loop should be
foreach($var as $v)
– rpm192
Nov 9 at 8:04
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53221717%2fhow-to-use-db-request-in-laravel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I think your foreach loop should be
foreach($var as $v)
– rpm192
Nov 9 at 8:04