The question is, can i use JavaScript code inside laravel controller?

|
Lisendra 2020-07-05 18:31:16
i am looking to to show only notification of the logged user , i tried this : ‘label’ => Notifications::count(), , but it return all notifications, what should i change to target the authentificate user only? it’s for a badge notification number
Lisendra 2020-07-05 18:32:36
Acird Burn 2020-07-05 17:25:56
is thier any simple/easy way onto how we can upgrade a laravel project onto the latest version of the framework ?

did you try https://laravel.com/docs/7.x/upgrade ?

Gagandeep 2020-07-05 18:33:09
How to work with react.js in laravel as i wanna use react in laravel for frontend …..
isofdev 2020-07-05 18:37:44
Gagandeep 2020-07-05 18:33:09
How to work with react.js in laravel as i wanna use react in laravel for frontend …..

Look this tutorial

Using React in a Laravel application

Using React in a Laravel application – Blog – PusherBlog – Pusher
Learn how to use React with Laravel by building a simple task management app. Discover how easy it is to integrate React and Laravel.
Lisendra 2020-07-05 18:51:59
Lisendra 2020-07-05 18:31:16
i am looking to to show only notification of the logged user , i tried this : ‘label’ => Notifications::count(), , but it return all notifications, what should i change to target the authentificate user only? it’s for a badge notification number

by trying to construct i got this ‘label’ => auth()->user()->unreadNotifications()->groupBy(‘notifiable_type’)->count(), and it work, maybe someone will find this usefull

AbhishekGupta_9 2020-07-05 18:57:34
https://stackoverflow.com/questions/62683268/wherebetween-on-two-columns-in-laravel-on-two-time-columns-in-laravel/62708198#62708198

whereBetween on two columns in laravel on two time columns in laravelStack Overflow
Basically i have a project in which i have to create a reservation for anything say computer’s reservation on cyber shop so suppose one user has start time of reservation is 6:00 PM to 7:00 PM.I ha…
AbhishekGupta_9 2020-07-05 18:57:46
Please answer
Gagandeep 2020-07-05 18:58:49
isofdev 2020-07-05 18:37:44
Look this tutorial
https://blog.pusher.com/react-laravel-application/

Thnku so much for this blog. I’ll look at this ….

Lisendra 2020-07-05 19:00:29
AbhishekGupta_9 2020-07-05 18:57:34
https://stackoverflow.com/questions/62683268/wherebetween-on-two-columns-in-laravel-on-two-time-columns-in-laravel/62708198#62708198

you got an answer already, it doesn’t work?

AbhishekGupta_9 2020-07-05 19:01:09
Yes it’s not working
Lisendra 2020-07-05 19:01:59
can you show your code?
Lisendra 2020-07-05 19:02:39
i didn’t see any code from your side in the post you made beside writting the logic
ongray 2020-07-05 19:58:13
AbhishekGupta_9 2020-07-05 19:01:09
Yes it’s not working

if you know how to do the overlapping validation for number/integer, then u can solve this using timestamp. hope this help

AbhishekGupta_9 2020-07-05 20:23:57
ongray 2020-07-05 19:58:13
if you know how to do the overlapping validation for number/integer, then u can solve this using timestamp. hope this help

Can u please give me some logic

Lisendra 2020-07-05 20:25:50
AbhishekGupta_9 2020-07-05 20:23:57
Can u please give me some logic

show us your code, if you did write any

Lisendra 2020-07-05 20:27:43
Anyone here with experience with adminlte menu builder? having some issue with submenu
ongray 2020-07-05 20:29:23
Start time = 100
End time = 500
If you find and time in between then this are overlap

Select count(*) from table where starttime in between 100 and 500
Union
Select count (*) from table where endtime in between 100 and 500

AbhishekGupta_9 2020-07-05 20:42:20
It will fail for suppose we have a reservation from 3 to 4 and 2 nd user trying for 3:30 – 3:45 then it is giving 0 count
AbhishekGupta_9 2020-07-05 20:42:55
I have tried this
ArvinRayan 2020-07-05 20:44:43
I wanna create jwt auth in laravel
And i create auth with jwt for user model . and another now i want create auth for supplier
Pls help me . that how can write it?
isofdev 2020-07-05 20:49:44
ArvinRayan 2020-07-05 20:44:43
I wanna create jwt auth in laravel
And i create auth with jwt for user model . and another now i want create auth for supplier
Pls help me . that how can write it?

Do You want to create multi auth ?

firmandev 2020-07-05 20:57:57
i am desperated using laravel
firmandev 2020-07-05 20:58:22
please someone help i’m using JWT for API in laravel relation “users” does not exist
firmandev 2020-07-05 20:59:11
providers’ => [
‘users’ => [
‘driver’ => ‘eloquent’,
‘model’ => AppUser::class,
],
firmandev 2020-07-05 20:59:23
what should i change to using custom table ?
isofdev 2020-07-05 21:02:50
firmandev 2020-07-05 20:59:23
what should i change to using custom table ?

‘providers’ => [
‘users’ => [
‘driver’ => ‘eloquent’,
‘model’ => AppUser::class,
],
‘custom_table’ => [
‘driver’ => ‘eloquent’,
‘model’ => AppCustom_table::class,
],

],

firmandev 2020-07-05 21:03:08
can i use same model i mean User
isofdev 2020-07-05 21:05:08
firmandev 2020-07-05 21:03:08
can i use same model i mean User

what do you want to do ? multi auth or

firmandev 2020-07-05 21:05:14
no
firmandev 2020-07-05 21:05:24
i want auth using my custom table
firmandev 2020-07-05 21:05:34
but i dont want to create new model
firmandev 2020-07-05 21:06:03
i want reuse this User Model, i just want to change the table name and field to attemp in JWT
firmandev 2020-07-05 21:10:23
if i change this
firmandev 2020-07-05 21:10:51
i can use my table but i cant use my fields
firmandev 2020-07-05 21:11:01
Undefined index: password
firmandev 2020-07-05 21:11:11
please help
2020-07-05 21:26:32
Who Can Crack The Password 7 Zip ??

It’s very important File🌹🌹

ArvinRayan 2020-07-05 21:55:01
isofdev 2020-07-05 20:49:44
Do You want to create multi auth ?

Yes i need. Create multi auth for restapi with laravel sanctum

inlogicstudio 2020-07-05 21:55:31
Hello here just joining
firmandev 2020-07-05 22:10:29
Hmn i have wrong edit user.pgp
firmandev 2020-07-05 22:10:39
*php
firmandev 2020-07-05 22:10:57
My problem is why my token always empty ?
karthick_sivakumar 2020-07-05 22:33:24
Hu guys,

Please do look into my Laravel package for admin panel nd let me know ur feedbacks. It gas currently 300+ installations, please support by adding star to the github repo.

https://packagist.org/packages/larasnap/laravel-admin

larasnap/laravel-admin – Packagistpackagist.org
Laravel Admin Panel
2020-07-05 22:34:38
2020-07-05 21:26:32
Who Can Crack The Password 7 Zip ??

It’s very important File🌹🌹

laravel_discuss-43878.jpg

2020-07-05 22:35:06
2020-07-05 22:34:38

Who Can Crack The Password 7 Zip ??

It’s very important File🌹🌹

2020-07-06 00:32:34
Hey guys.
I have a laravel controller that fetches some data from the database.
I store this data into php array.
For some reason, I want to convert it into JavaScript array. But every time I use JavaScript code. The whole controller does nothing. The question is, can i use JavaScript code inside laravel controller?
realhamidrahimi 2020-07-06 01:30:49
how to find if email exist in gmail in php
…. 2020-07-06 01:39:38
laravel_discuss-43883.jpg

…. 2020-07-06 01:39:55
laravel_discuss-43884.jpg

…. 2020-07-06 01:40:08
The driver not appeare in visualcod. why
|