Contents:
But it is supposed to do it laravel itself, right?
I mean, after 1 minute inactive, if I navigate to any route I should be redirected to the login if the route is for auth users only, right?
Has anyone here ever used the spartie package to manage roles and permission?
Did you use seed to try out roles and permission?
all function in this file, is undefined?
Do yo include the script or file at the end of the file Gaurav ?
the problem persist?
But it is supposed to do it laravel itself, right?
I mean, after 1 minute inactive, if I navigate to any route I should be redirected to the login if the route is for auth users only, right?
Has anyone here ever used the spartie package to manage roles and permission?
Did you use seed to try out roles and permission?
all function in this file, is undefined?
Do yo include the script or file at the end of the file Gaurav ?
the problem persist?
StanleyMasinde 2019-08-07 13:28:56
senhorY 2019-08-07 11:05:33
Hey there. One question… If I set SESSION_LIFETIME value to 1, users’ session should expire after 1 minute, right?
1 minute of inactivity
senhorY 2019-08-07 13:31:54
But It didnt kick me out after 1 minute of inactivity
StanleyMasinde 2019-08-07 13:32:33
senhorY 2019-08-07 13:31:54
But It didnt kick me out after 1 minute of inactivity
Add that functionally with JavaScript
StanleyMasinde 2019-08-07 13:32:47
You will have to use cookies for sessions
StanleyMasinde 2019-08-07 13:33:25
After a session ends just call location.reload or anything like that
senhorY 2019-08-07 13:34:36
But it is supposed to do it laravel itself, right?
senhorY 2019-08-07 13:35:27
I mean, after 1 minute inactive, if I navigate to any route I should be redirected to the login if the route is for auth users only, right?
StanleyMasinde 2019-08-07 13:36:28
senhorY 2019-08-07 13:35:27
I mean, after 1 minute inactive, if I navigate to any route I should be redirected to the login if the route is for auth users only, right?
Yes
senhorY 2019-08-07 13:42:19
Well, that0s not happening
senhorY 2019-08-07 13:42:22
Weird…
senhorY 2019-08-07 13:42:34
Ill have a deeper look later
senhorY 2019-08-07 13:42:38
Thanks !
π
½π
Έπ
Όπ
°οΈ 2019-08-07 15:26:12
Hi guys , I need gallery manager with Crop image …
Any ideah ?
Any ideah ?
farshidrezaeii 2019-08-07 15:29:36
π
½π
Έπ
Όπ
°οΈ 2019-08-07 15:26:12
Hi guys , I need gallery manager with Crop image …
Any ideah ?
Any ideah ?
unisharp/lfm
π
½π
Έπ
Όπ
°οΈ 2019-08-07 15:31:35
farshidrezaeii 2019-08-07 15:29:36
unisharp/lfm
Thanks Mate !
farshidrezaeii 2019-08-07 15:31:46
π
½π
Έπ
Όπ
°οΈ 2019-08-07 15:31:35
Thanks Mate !
βοΈ
2019-08-07 15:37:41
galera
deepu606 2019-08-07 16:39:58
oxbir 2019-08-06 22:47:50
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘parent_id’ in ‘where clause’ (SQL: select count(*) as aggregate from buys where parent_id = 2)
Solved?
mwangiismuthui 2019-08-07 16:51:32
Has anyone here ever used the spartie package to manage roles and permission???What should one do if the model has permissions table is not being updated
DesolatorMagno 2019-08-07 16:55:48
Worked a couple of times with it, it work flawless.
mwangiismuthui 2019-08-07 16:59:53
DesolatorMagno 2019-08-07 16:55:48
Worked a couple of times with it, it work flawless.
mine is not updating the model_has _permissions table hence cant use permissions to lock out users….
mwangiismuthui 2019-08-07 17:00:00
Please help..
DesolatorMagno 2019-08-07 17:04:32
Did you use seed to try out roles and permission?
mwangiismuthui 2019-08-07 17:07:21
yeah…
DesolatorMagno 2019-08-07 17:08:54
Ok…
GauravGohil 2019-08-07 19:46:01
function written in script file and when used in blade it shows that function is not defined
GauravGohil 2019-08-07 19:46:27
<a onclick=”clonesavedtemplates({{$savedtemplate->id}})” class=”save_clone_btn”></a>
GauravGohil 2019-08-07 19:47:07
function clonesavedtemplates(id){
$.ajax({
url: “/saved-templates/duplicate/”+id,
headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
},
method: “PATCH”,
success: function (data) {
$.ajax({
url: “/saved-templates/duplicate/”+id,
headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
},
method: “PATCH”,
success: function (data) {
},
error: function (data) {
},
})
}
Sumeet Jadhav 2019-08-07 19:48:47
Try moving the function out from document. Ready
giorbismiguel 2019-08-07 19:49:56
it is neccessary you have a function inside $(function(){ cloneSavedTemplates()……. });
GauravGohil 2019-08-07 19:50:47
yes i have it inside ready function
giorbismiguel 2019-08-07 19:52:01
write here a blade file please
GauravGohil 2019-08-07 19:55:05

GauravGohil 2019-08-07 19:55:31
giorbismiguel 2019-08-07 19:49:56
it is neccessary you have a function inside $(function(){ cloneSavedTemplates()……. });
It gives compilation error
2019-08-07 19:56:28
Hhhhπhhhh
Sumeet Jadhav 2019-08-07 19:57:39
GauravGohil 2019-08-07 19:50:47
yes i have it inside ready function
Move it outside reasy function
giorbismiguel 2019-08-07 19:58:12
all function in this file, is undefined?
GauravGohil 2019-08-07 19:59:47
the function which i have used with attribute onclick
GauravGohil 2019-08-07 19:59:59
gives error only
GauravGohil 2019-08-07 20:00:21
if i call then within script they work fine
giorbismiguel 2019-08-07 20:04:33
Do yo include the script or file at the end of the file Gaurav ?
GauravGohil 2019-08-07 20:05:28
start of file
giorbismiguel 2019-08-07 20:11:28
please, change the position, include file or script at the end
GauravGohil 2019-08-07 20:27:58
in laravel default script is linked above
GauravGohil 2019-08-07 20:28:24
for me this way it worked
GauravGohil 2019-08-07 20:28:26
window.functionName =function(){
//code and stuff
}
//code and stuff
}
giorbismiguel 2019-08-07 20:35:33
it is true, i prefer include in the botton
giorbismiguel 2019-08-07 20:35:40
the problem persist?
DesolatorMagno 2019-08-07 20:52:28
Or just use eventlistener,
zack6849 2019-08-07 21:38:44
GauravGohil 2019-08-07 19:47:07
function clonesavedtemplates(id){
$.ajax({
url: “/saved-templates/duplicate/”+id,
headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
},
method: “PATCH”,
success: function (data) {
$.ajax({
url: “/saved-templates/duplicate/”+id,
headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
},
method: “PATCH”,
success: function (data) {
},
error: function (data) {
},
})
}
You know the docs have a snippet you can use that’ll automatically insert csrf into your Ajax for you, yeah?