Guys, do anyone have experience of fetching multiple sums from related table?

|
Sujay 2020-05-04 09:53:00
I don’t understand what actually you want to say? Will you please tell your specific problem
rebory 2020-05-04 09:55:07
Sujay 2020-05-04 09:53:00
I don’t understand what actually you want to say? Will you please tell your specific problem

when i try to sent record for edit $homeServiceLink is empty check dd(); image

rebory 2020-05-04 09:55:23
rebory 2020-05-04 09:40:41

omkar

Sujay 2020-05-04 10:44:26
rebory 2020-05-04 09:55:07
when i try to sent record for edit $homeServiceLink is empty check dd(); image

If you want to use homeServiceLink as globally, Do something like this

$this->_homeServiceLink

in your edit method

rebory 2020-05-04 10:50:11
Sujay 2020-05-04 10:44:26
If you want to use homeServiceLink as globally, Do something like this

$this->_homeServiceLink

in your edit method

bro u can’t understand , leave this topic , fix it.

Sujay 2020-05-04 10:55:40
rebory 2020-05-04 10:50:11
bro u can’t understand , leave this topic , fix it.

Okay bro.

Neeraj Khatak 2020-05-04 11:52:30
I have to create spin wheel game with numbers can you please suggest me any link for refrence.
2020-05-04 12:12:24
laravel_discuss-35841.jpg
Guys, do anyone have experience of fetching multiple sums from related table?

Table structure:
Users
– id
– username
(related to deposits with hasMany)
Deposits
– id
– status (active/pending/cancelled/finished)
– amount
– user_id
– payment_system_id
PaymentSystems
– id
– currency (USD/BTC/EUR/GBP)
– name

For some reasons, this piece of code sums all amouts for current page (used paginate) and returns in the last result. Any ideas?

2020-05-04 12:21:45
Expected result:
User
Deposits
*
– currency USD
– total_deposit xxx

*
– currency BTC
– total_deposit xxx

HuptechConsultancy 2020-05-04 13:10:02
laravel_discuss-35845.jpg

2020-05-04 14:24:51
HuptechConsultancy 2020-05-04 13:10:02

Remote work or stationed?

djos987 2020-05-04 14:53:37
HuptechConsultancy 2020-05-04 13:10:02

ะšemote&

HuptechConsultancy 2020-05-04 15:51:28
Stationed
Rbmulani 2020-05-04 17:31:36
HuptechConsultancy 2020-05-04 13:10:02

Loca

Rbmulani 2020-05-04 17:31:39
Location?
IbrahimMasri 2020-05-04 17:43:25
Hello
What is must the host name in the .env file for email when we created it in the cpanel?
IbrahimMasri 2020-05-04 18:19:59
laravel_discuss-35853.jpg

IbrahimMasri 2020-05-04 18:20:06
I created an email in cpanel
IbrahimMasri 2020-05-04 18:20:42
What must the host name be in the env file for used the email?
MustafaDrao 2020-05-04 18:26:53
laravel_discuss-35856.jpg
Can Anyone help me why that error please ?
Sujay 2020-05-04 18:39:52
MustafaDrao 2020-05-04 18:26:53
Can Anyone help me why that error please ?

1 – go to folder PATHxamppapache
and run makecert.bat
2 – add this script to composer.json file

“repositories”: [
{
“type”: “composer”,
“url”: “https://packagist.org”
},
{
“packagist”: false
}
]

packagist.org
The PHP Package Repository
2020-05-04 18:44:19
Looking for SEO expert & we developer. Please send your resume to hr@syncsitetec.com
MustafaDrao 2020-05-04 18:58:15
Sujay 2020-05-04 18:39:52
1 – go to folder PATHxamppapache
and run makecert.bat
2 – add this script to composer.json file

“repositories”: [
{
“type”: “composer”,
“url”: “https://packagist.org”
},
{
“packagist”: false
}
]

What should I do if I run makecert.bat ??

MustafaDrao 2020-05-04 18:58:38
I got the same problem
Sujay 2020-05-04 19:14:27
MustafaDrao 2020-05-04 18:58:15
What should I do if I run makecert.bat ??

This will create a SSL certificate.

Sujay 2020-05-04 19:15:18
https://gist.github.com/turtlepod/e94928cddbfc46cfbaf8c3e5856577d0

XAMPP SSL Tutorial https://shellcreeper.com/?p=2573Gist
XAMPP SSL Tutorial https://shellcreeper.com/?p=2573 – make-cert.bat
Sujay 2020-05-04 19:15:59
๐Ÿ‘†here u can see how certificate is look like
MustafaDrao 2020-05-04 19:16:52
Okay thanx, I will do that ๐Ÿ‘
themanojyadav 2020-05-04 19:24:54
Hey guys. I have a doubt about laravel multiple authentication.
Should i make multiple tables for multiple users roles.
Or should i make roles in single user table.
isofdev 2020-05-04 20:17:30
themanojyadav 2020-05-04 19:24:54
Hey guys. I have a doubt about laravel multiple authentication.
Should i make multiple tables for multiple users roles.
Or should i make roles in single user table.

make multiple tables for multiple users roles. Is the best choice

2020-05-04 20:42:00
themanojyadav 2020-05-04 19:24:54
Hey guys. I have a doubt about laravel multiple authentication.
Should i make multiple tables for multiple users roles.
Or should i make roles in single user table.

i think he means one for admin and another one for user..

2020-05-04 20:42:11
i think that’s btr
digitalharish_com 2020-05-04 20:57:41
https://www.greatlearning.in/academy?utm_source=Olympus&utm_medium=GLAcademyPass&user_id=265470

Great Learning Academy Free Certificate Courses | Learn the skillsGreat Learning
Learn the skills of the most trending technologies such as Artificial Intelligence, Data Science, Machine Learning, Business Analytics, Cloud Computing, Digital Marketing
Sujay 2020-05-04 20:59:20
isofdev 2020-05-04 20:17:30
make multiple tables for multiple users roles. Is the best choice

I think, different table for each roles is better because it provides modularity.

themanojyadav 2020-05-04 22:18:08
isofdev 2020-05-04 20:17:30
make multiple tables for multiple users roles. Is the best choice

But what if i have 8 roles

themanojyadav 2020-05-04 22:18:37
2020-05-04 20:42:00
i think he means one for admin and another one for user..

Right. But i have few more roles

themanojyadav 2020-05-04 22:19:50
Sujay 2020-05-04 20:59:20
I think, different table for each roles is better because it provides modularity.

I have several roles. and i want flexibility also. So that in future if i make any change in authentication system, it does not create problem.

DesolatorMagno 2020-05-04 22:22:41
What’s the problem with building a user, roles, permission, roles_user, permission_roles and permission_user tables?
themanojyadav 2020-05-04 22:29:08
DesolatorMagno 2020-05-04 22:22:41
What’s the problem with building a user, roles, permission, roles_user, permission_roles and permission_user tables?

How? Do you have any source where i can find this?

DesolatorMagno 2020-05-04 22:29:47
that’s a very standar way to manage roles.
DesolatorMagno 2020-05-04 22:30:30
you asign role to user, permission to roles, and you can asign permission directly to user, but the last part make it a little harder.
themanojyadav 2020-05-04 22:30:38
DesolatorMagno 2020-05-04 22:29:47
that’s a very standar way to manage roles.

I know. But laravel authentication confuses me

Siberfx 2020-05-04 22:30:51
You can ignore it
Siberfx 2020-05-04 22:31:25
if you want to implement another auth or write by your own
Siberfx 2020-05-04 22:31:38
There are ways to override laravels one
themanojyadav 2020-05-04 22:31:40
Siberfx 2020-05-04 22:30:51
You can ignore it

But some of the laravel authentication functionalities are cool. I want to append my authentication with laravel authentication

Siberfx 2020-05-04 22:31:54
Then extend it
themanojyadav 2020-05-04 22:32:38
I have read one article om which i can simply achieve this by using middlewares. Only ihave to handle redirects. Let me show u. Suggest me of it is a good idea or not
themanojyadav 2020-05-04 22:33:12
https://dev.to/kaperskyguru/multiple-role-based-authentication-in-laravel-30pc

Multiple role-based authentication in LaravelDEV Community
Hey guys, in this article, am going to show you how toimplement multiple role-based authentication in…
DesolatorMagno 2020-05-04 22:33:14
extend is the best option, but you are free to try anything else.
|