Anyone know about server sent events?

|
seniormonsieur 2022-07-29 12:05:32
etekumoses 2022-07-29 12:04:52
if i comment it out then the whole loop gets messed up

ok lets try something else

etekumoses 2022-07-29 12:05:34
this is what i have what should be commented out
etekumoses 2022-07-29 12:05:45
seniormonsieur 2022-07-29 12:05:32
ok lets try something else

yes please

seniormonsieur 2022-07-29 12:08:34
etekumoses 2022-07-29 12:05:34
this is what i have what should be commented out

what is function $qy

etekumoses 2022-07-29 12:09:12
i thought we create a new one
etekumoses 2022-07-29 12:09:24
😂😁 anyway i dont know what should i do
seniormonsieur 2022-07-29 12:11:57
etekumoses 2022-07-29 12:09:12
i thought we create a new one

not gonna lie that line of code will not work unless your specify what that function qy and k is

etekumoses 2022-07-29 12:18:46
haha it now works haha
Laradev 2022-07-29 12:20:52
etekumoses 2022-07-29 12:18:46
haha it now works haha

Did you specify the $k?

etekumoses 2022-07-29 12:21:20
k had to be value
etekumoses 2022-07-29 12:21:37
if ($request->has(‘search’)) {
$key = explode(‘ ‘, $request[‘search’]);
$query = $query->where(function ($q) use ($key) {
foreach ($key as $value) {
$q->orWhere(‘id’, ‘like’, “%{$value}%”)
->orWhere(‘appointment_status’, ‘like’, “%{$value}%”)
->orWhereHas(‘user’, function ($q) use ($value) {

$q->where(‘f_name’, ‘like’, ‘%’.$value.’%’)->orWhere(‘username’,’like’,’%’.$value.’%’)->orWhere(‘l_name’,’like’,’%’.$value.’%’);

});
}
});
$query_param = [‘search’ => $request[‘search’]];
}

Laradev 2022-07-29 12:23:02
etekumoses 2022-07-29 12:21:37
if ($request->has(‘search’)) {
$key = explode(‘ ‘, $request[‘search’]);
$query = $query->where(function ($q) use ($key) {
foreach ($key as $value) {
$q->orWhere(‘id’, ‘like’, “%{$value}%”)
->orWhere(‘appointment_status’, ‘like’, “%{$value}%”)
->orWhereHas(‘user’, function ($q) use ($value) {

$q->where(‘f_name’, ‘like’, ‘%’.$value.’%’)->orWhere(‘username’,’like’,’%’.$value.’%’)->orWhere(‘l_name’,’like’,’%’.$value.’%’);

});
}
});
$query_param = [‘search’ => $request[‘search’]];
}

Good 👍

etekumoses 2022-07-29 12:23:23
thanks
etekumoses 2022-07-29 12:24:05
i wont forget this btw i have learnt laravel through this group and doing project based learning and now i can build any application using it
etekumoses 2022-07-29 12:24:17
i have so far built 3 applications
Godwin Akpah 2022-07-29 12:27:05
Got some stuff for who is in
abedelwahab_haddaf 2022-07-29 12:27:50
Hi
I need to make pagination using ajax
If I have 300 records and I paginate it 50 in each page
I need when I click in the first page
Load only 1-50 records
If I click the 3 page
Load 101 to 150 records
I hope you understand what I need
etekumoses 2022-07-29 13:03:20
Guys i build a simple voting system and i have an estimate of 700 voters i dont know if laravel can handle it without crushing
etekumoses 2022-07-29 13:03:30
someone kindly advise me
Laradev 2022-07-29 13:07:31
etekumoses 2022-07-29 13:03:20
Guys i build a simple voting system and i have an estimate of 700 voters i dont know if laravel can handle it without crushing

Laravel has the capability to handle thousands of files, I see no issue 700 is very few

etekumoses 2022-07-29 13:07:59
real time
etekumoses 2022-07-29 13:08:15
because i was scared cause it might crush
etekumoses 2022-07-29 13:09:01
laravel_discuss-131191.jpg
also how do i print this table with the css available
Laradev 2022-07-29 13:10:23
etekumoses 2022-07-29 13:07:59
real time

700 is still a few,

etekumoses 2022-07-29 13:10:38
Laradev 2022-07-29 13:10:23
700 is still a few,

cool

Laradev 2022-07-29 13:10:59
Provided your queries are well stated
etekumoses 2022-07-29 13:11:48
yes send me your email you check it out
etekumoses 2022-07-29 13:15:12
recieved
etekumoses 2022-07-29 13:42:05
laravel_discuss-131197.jpg
i am trying to print but its only printing the top list
Ajmal243 2022-07-29 13:50:16
Anyone know about server sent events?
Web Developer 2022-07-29 13:51:45
Artisan events??
Darksaladin 2022-07-29 13:52:56
Hi 🙋‍♂️
Ich suche einen Deutsch sprechenden LARAVEL Programmierer fürs Backend ggf. auch Frontend wenn das auch jemand kann (keine Pflicht).

Möchte eine Directory Hub Seite abändern lassen…

Einfach anschreiben. 👍🏻

AtsuErnest 2022-07-29 13:57:49
etekumoses 2022-07-29 13:42:05
i am trying to print but its only printing the top list

How are you doing the printing?

etekumoses 2022-07-29 14:05:27
laravel_discuss-131206.jpg

etekumoses 2022-07-29 14:05:27
laravel_discuss-131205.jpg

etekumoses 2022-07-29 14:05:38
This is how my table is and also the print function
etekumoses 2022-07-29 14:12:42
laravel_discuss-131208.jpg
I want all positions in the same print out
Amit Sharma 2022-07-29 14:41:13
anyone pls help me
Amit Sharma 2022-07-29 14:41:23
$(“.action”).click(function() {
var id = $(this).data(‘id’);
$(‘#action’).modal(‘show’);
$(‘#app_id’).val(data.id);
});
Amit Sharma 2022-07-29 14:42:08
Amit Sharma 2022-07-29 14:41:23
$(“.action”).click(function() {
var id = $(this).data(‘id’);
$(‘#action’).modal(‘show’);
$(‘#app_id’).val(data.id);
});

in this i want to send this id as hidden input type value

Amit Sharma 2022-07-29 14:42:19
is it possible?
Amit Sharma 2022-07-29 14:42:58
to send id from here to model ?
bunny99143 2022-07-29 14:43:27
Amit Sharma 2022-07-29 14:42:19
is it possible?

yes its possible

Amit Sharma 2022-07-29 14:43:45
how can you pls tell me
bunny99143 2022-07-29 14:44:15
you can share screenshot of html + jq p
Amit Sharma 2022-07-29 14:44:57
laravel_discuss-131218.jpg

bunny99143 2022-07-29 14:51:04
Amit Sharma 2022-07-29 14:41:23
$(“.action”).click(function() {
var id = $(this).data(‘id’);
$(‘#action’).modal(‘show’);
$(‘#app_id’).val(data.id);
});

replace your function with this code

$(“.action”).click(function() {
var id = $(this).data(‘id’);
$(‘#action’).modal(‘show’);
$(‘#action #app_id’).val(id);
});

Amit Sharma 2022-07-29 14:51:41
thank you 🙏
bunny99143 2022-07-29 14:54:09
abedelwahab_haddaf 2022-07-29 12:27:50
Hi
I need to make pagination using ajax
If I have 300 records and I paginate it 50 in each page
I need when I click in the first page
Load only 1-50 records
If I click the 3 page
Load 101 to 150 records
I hope you understand what I need

you can use laravel ORM
->paginate(’50’)
this function.

using this function you can achieve this

abedelwahab_haddaf 2022-07-29 14:55:39
bunny99143 2022-07-29 14:54:09
you can use laravel ORM
->paginate(’50’)
this function.

using this function you can achieve this

This will load all the data
If the table has for example 100,000 records
This will take a lot of time

|