Contents:
What is the problem here please?
what is your error?
Do yiu have any idea about my peiblem on the above?
Any idea please?
How would you accomplish user roles?
What is the problem here please?
what is your error?
Do yiu have any idea about my peiblem on the above?
Any idea please?
How would you accomplish user roles?
Relaxed Guy 2020-04-23 10:10:57
For admin
Relaxed Guy 2020-04-23 10:11:51

htoowaikhant 2020-04-23 10:12:31
remove single quote ( if(session()->get(‘roleId’) != 1)
Khair_al_deen 2020-04-23 10:12:51

What is the problem here please?
Khair_al_deen 2020-04-23 10:13:47

This route list
htoowaikhant 2020-04-23 10:14:18
what is your error?
Khair_al_deen 2020-04-23 10:15:33
The data not stored in database
Z_Yamin 2020-04-23 10:15:57
use action({{route(‘posts.store’)}})
cartltech 2020-04-23 10:16:13
Khair_al_deen 2020-04-23 10:12:51
What is the problem here please?
You can’t define a route like that bro
cartltech 2020-04-23 10:16:49
Z_Yamin 2020-04-23 10:15:57
use action({{route(‘posts.store’)}})
Exactly
cartltech 2020-04-23 10:17:07
Please I need some help on here too
Khair_al_deen 2020-04-23 10:17:48
cartltech 2020-04-23 10:16:13
You can’t define a route like that bro
How?
Z_Yamin 2020-04-23 10:17:55
cartltech 2020-04-23 10:16:49
Exactly
Bro!
Do yiu have any idea about my peiblem on the above?
Z_Yamin 2020-04-23 10:18:11
Problem
Relaxed Guy 2020-04-23 10:18:59
htoowaikhant 2020-04-23 10:12:31
remove single quote ( if(session()->get(‘roleId’) != 1)
I am not using the admin route
Relaxed Guy 2020-04-23 10:19:08
Srry admin middleware
Relaxed Guy 2020-04-23 10:19:11
M using gates
Relaxed Guy 2020-04-23 10:19:19
So ts not connected
htoowaikhant 2020-04-23 10:22:23
Relaxed Guy 2020-04-23 10:03:28
session()->get(‘roleId’) == 1
htoowaikhant 2020-04-23 10:22:37
no need to use ===
Z_Yamin 2020-04-23 10:22:59
Z_Yamin 2020-04-23 10:01:47
Any idea please?
Relaxed Guy 2020-04-23 10:23:48
htoowaikhant 2020-04-23 10:22:23
session()->get(‘roleId’) == 1
I used to === when == are not working
Relaxed Guy 2020-04-23 10:24:08
== for a string
htoowaikhant 2020-04-23 10:24:11
Relaxed Guy 2020-04-23 10:23:48
I used to === when == are not working
Hmm
Relaxed Guy 2020-04-23 10:24:53
Session()->get(‘roleid’)==’1′
cartltech 2020-04-23 10:25:40
Z_Yamin 2020-04-23 10:17:55
Bro!
Do yiu have any idea about my peiblem on the above?
Do yiu have any idea about my peiblem on the above?
My guess would be to use JavaScript
htoowaikhant 2020-04-23 10:25:59
Relaxed Guy 2020-04-23 10:24:53
Session()->get(‘roleid’)==’1′
dd(Session()->get(‘roleid’)); what got reslut?
Relaxed Guy 2020-04-23 10:26:19
The result is 1
Relaxed Guy 2020-04-23 10:26:24
Bcoz am admin
htoowaikhant 2020-04-23 10:27:32
so you can use like this . Session()->get(‘roleid’) == 1
htoowaikhant 2020-04-23 10:27:58
u are trying to condition on integer and string.
Relaxed Guy 2020-04-23 10:32:01
No
Relaxed Guy 2020-04-23 10:32:18
Kindly look at conditions in gates
Relaxed Guy 2020-04-23 10:32:28
They are integers
Relaxed Guy 2020-04-23 10:33:58
I have changed to integers
Relaxed Guy 2020-04-23 10:34:00
Not working
htoowaikhant 2020-04-23 10:46:02
$data = 1;
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
htoowaikhant 2020-04-23 10:46:18
here you test on this.
Gio1614 2020-04-23 10:47:39
Khair_al_deen 2020-04-23 10:12:51
What is the problem here please?
{{ route() }}
Gio1614 2020-04-23 10:48:46
htoowaikhant 2020-04-23 10:46:02
$data = 1;
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
DATA PRINT
Relaxed Guy 2020-04-23 11:01:06
htoowaikhant 2020-04-23 10:46:02
$data = 1;
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
if($data == 1){
return ‘data’;
} else{
return ‘not data’;
}
Returns data
Fuchsr 2020-04-23 11:38:01
How would you accomplish user roles? (admin,mod,user)
I think of adding a field to the useres table to rank the user, then add a checkup in the templates.
daniel007in 2020-04-23 12:02:42

daniel007in 2020-04-23 12:29:07
an error
daniel007in 2020-04-23 12:29:25
certificate also loaded
rebory 2020-04-23 12:44:26
daniel007in 2020-04-23 12:02:42
Try to enable curl in cpanel
daniel007in 2020-04-23 12:45:00
wamp
daniel007in 2020-04-23 12:45:17
laravel version 7.0
Patricklab 2020-04-23 13:00:44
need a full time laravel php freelance developer whose worked with vue js nodejs and laravel 7.0 must have clear understanding of building up modular based systems and be a very fast developer at getting work done with backend as u will be working side by side with a team we are working with bitbuket
ssj7_gs 2020-04-23 13:06:39

excuse me good afternoon sir I want to ask how to manually update the polymorphic many to many, how do I create it, I have succeeded. Please enlighten me, thank you