Can I get the query for getting exactly one table field where a specific conditions mets in eloquent?

|
TheGuyi 2021-12-01 16:49:07
JasurBek916 2021-12-01 16:44:58
$exp = Ursb::paginate(5);

return view(‘url’, compact(‘exp’));

try this bro

laravel_discuss-101207.jpg
i am using function mount i think it wont work

nowodev 2021-12-01 16:49:27
TheGuyi 2021-12-01 16:13:12

What’s the error exactly?

TheGuyi 2021-12-01 16:49:49
nowodev 2021-12-01 16:49:27
What’s the error exactly?

laravel_discuss-101209.jpg

nowodev 2021-12-01 16:52:19
Do this in your blade
dd($ursbs).
nowodev 2021-12-01 16:52:31
And show the result.
TheGuyi 2021-12-01 16:55:25
nowodev 2021-12-01 16:52:31
And show the result.

laravel_discuss-101213.jpg

Vladij1989 2021-12-01 16:56:13
TheGuyi 2021-12-01 16:55:25

Ursb::query()->where(‘id’, ‘>’, 0)->paginate(5)

nowodev 2021-12-01 16:56:55
TheGuyi 2021-12-01 16:49:07
i am using function mount i think it wont work

Why are you using a mount function and still passing the same value in the render function?
Remove the mount and reload page

TheGuyi 2021-12-01 17:01:10
nowodev 2021-12-01 16:56:55
Why are you using a mount function and still passing the same value in the render function?
Remove the mount and reload page

laravel_discuss-101216.jpg
when i remove mount table is empty

TheGuyi 2021-12-01 17:01:20
but the paginate works
TheGuyi 2021-12-01 17:01:41
nowodev 2021-12-01 16:56:55
Why are you using a mount function and still passing the same value in the render function?
Remove the mount and reload page

can i paginate on the mount function?

nowodev 2021-12-01 17:02:05
TheGuyi 2021-12-01 17:01:41
can i paginate on the mount function?

Then just add the paginate function in your mount

TheGuyi 2021-12-01 17:03:12
nowodev 2021-12-01 17:02:05
Then just add the paginate function in your mount

like this ?

public function mount(){
$this->ursbs = Ursb::all()->paginate(10);
}

nowodev 2021-12-01 17:03:33
public function mount(){
$this->ursbs = Ursb::paginate(10);
}
TheGuyi 2021-12-01 17:03:50
nowodev 2021-12-01 17:03:33
public function mount(){
$this->ursbs = Ursb::paginate(10);
}

and the blade?

nowodev 2021-12-01 17:04:02
TheGuyi 2021-12-01 17:03:50
and the blade?

The same way it is

TheGuyi 2021-12-01 17:05:53
nowodev 2021-12-01 17:04:02
The same way it is

laravel_discuss-101225.jpg

TheGuyi 2021-12-01 17:05:53
nowodev 2021-12-01 17:04:02
The same way it is

laravel_discuss-101224.jpg
{{$ursbs->links() }}

TheGuyi 2021-12-01 17:08:03
nowodev 2021-12-01 17:04:02
The same way it is

i am getting that error

winterfell_programmer 2021-12-01 17:13:53
Please I’m in need of a developer to help running Lumen – scheduler on docker. I have tried many options but not working
Tjpatel16 2021-12-01 17:34:48
how can i deploy lumen project to shared hosting??
Tjpatel16 2021-12-01 17:35:48
and how to link to photo and video on public folder??
wajdi kayal 2021-12-01 19:09:58
MIDDLE PHP #LARAVEL DEVELOPER
#Job
#Lebanon
#Programming
#DigitalMarketing
#cybersecurity #MachineLearning #100DaysOfCode
#Python
#Wordpress
#flutter
#nodejs
#javascript
#Angular
#hiring
#developer
#php
#Swift
#VueJS
#Kotlin
#Java
#HTML
#react
#CSS
https://wmktech.com/jobs/middle-php-laravel-developer-qkta-1638372656

MIDDLE PHP (LARAVEL) DEVELOPERWMK TECH
mystic_riverr 2021-12-01 19:21:44
HamidRoohani 2021-12-01 15:07:32
make a global file in your autoload in your composer.json
and then make a global function that returns the values
and then use these values to your blade

check every options value with your correct value and echo selected

Done 👍

wajdi kayal 2021-12-01 19:32:35
AWS DATA ENGINEER
#Job
#Lebanon
#Programming
#DigitalMarketing
#cybersecurity #MachineLearning #100DaysOfCode
#Python
#Wordpress
#flutter
#nodejs
#javascript
#Angular
#hiring
#developer
#php
#Swift
#VueJS
#Kotlin
#Java
#HTML
#react
#CSS
#aws
#data
https://wmktech.com/jobs/aws-data-engineer-aw3k-1638375586

AWS DATA ENGINEERWMK TECH
zcoll 2021-12-01 21:20:51
Hello friends !

I’m trying to check if user national number exists in api ?

So if it’s exists complete the user registration

if not exists show error message that the
User national number it’s not exists 😅

So help me how do I do that

wajdi kayal 2021-12-01 21:39:43
Git and GitHub for beginners
#nocode #lowcode #javascript #github #nodejs #cybersecurity #devops #100DaysOfCode #datascience #ai #codenewbie #machinelearning #DEVCommunity #Python #Serverless #womenintech #flutter
#hacker
#Aigle

https://wmktech.com/blog/git-and-github-for-beginners-q6kn-1638381408

Git and GitHub for beginnersWMK Tech
winter2141 2021-12-01 22:18:13
Hello, Everyone, I am a laravel expert. Now I wanna get a job.
Acird Burn 2021-12-01 22:42:15
winter2141 2021-12-01 22:18:13
Hello, Everyone, I am a laravel expert. Now I wanna get a job.

Upwork

segungreat 2021-12-01 22:43:14
zcoll 2021-12-01 21:20:51
Hello friends !

I’m trying to check if user national number exists in api ?

So if it’s exists complete the user registration

if not exists show error message that the
User national number it’s not exists 😅

So help me how do I do that

What have you tried?

zcoll 2021-12-01 22:44:54
segungreat 2021-12-01 22:43:14
What have you tried?

laravel_discuss-101241.jpg

2021-12-01 22:55:15
Hi,
Can I get the query for getting exactly one table field where a specific conditions mets in eloquent ?
segungreat 2021-12-02 00:27:16
zcoll 2021-12-01 22:44:54

When you dd $response, what’s the content

zcoll 2021-12-02 01:13:01
segungreat 2021-12-02 00:27:16
When you dd $response, what’s the content

I’m not try dd

ALAGUVEL Av 2021-12-02 01:56:18
Prakash 2021-11-27 08:58:58
I am available. We can talk about it

Yes

|