How can i scheduling my queues?

|
zmtrn 2020-02-12 10:02:23
Find what?!
skys215 2020-02-12 10:02:52
find when $this->sessionConfigured is set to false
skys215 2020-02-12 10:02:59
or when it should be set to true
zmtrn 2020-02-12 10:03:35
skys215 2020-02-12 10:02:52
find when $this->sessionConfigured is set to false

It’s false all the time that’s why session will start every time

skys215 2020-02-12 10:03:53
skys215 2020-02-12 10:02:59
or when it should be set to true

then do this

zmtrn 2020-02-12 10:13:53
Ok I just test it again:
It’s parameters are $request and a closure $next ;

I have a form with a post action for test,
I lode the form ( i expect the session starts here)
I submitted the form
Dump the $request and it’s session is null!

zmtrn 2020-02-12 10:32:02
The data lost after submission
skys215 2020-02-12 10:34:45
zmtrn 2020-02-12 10:13:53
Ok I just test it again:
It’s parameters are $request and a closure $next ;

I have a form with a post action for test,
I lode the form ( i expect the session starts here)
I submitted the form
Dump the $request and it’s session is null!

I think session starts at StartSession middleware

zmtrn 2020-02-12 10:37:26
skys215 2020-02-12 10:34:45
I think session starts at StartSession middleware

I know i check exactly this middleware and I’m in there

zmtrn 2020-02-12 10:37:41
I dd the session in this middleware
MatPk 2020-02-12 12:04:36
how can i scheduling my queues?
MatPk 2020-02-12 12:24:06
MatPk 2020-02-12 12:04:36
how can i scheduling my queues?

is my question understandable? 🤔

2020-02-12 14:34:26
skys215 2020-02-12 08:43:29
Need more info

laravel_discuss-26411.jpg
This sir

2020-02-12 14:34:27
skys215 2020-02-12 08:43:29
Need more info

laravel_discuss-26413.jpg

2020-02-12 14:34:27
skys215 2020-02-12 08:43:29
Need more info

laravel_discuss-26412.jpg

2020-02-12 14:34:28
skys215 2020-02-12 08:43:29
Need more info

laravel_discuss-26415.jpg

2020-02-12 14:34:28
skys215 2020-02-12 08:43:29
Need more info

laravel_discuss-26414.jpg

zmtrn 2020-02-12 15:08:11
MatPk 2020-02-12 12:24:06
is my question understandable? 🤔

Queue:work is a artisan command! Have u ever scheduled any command?! If yes this is the same and if not check laravel doc it’s easy

dineshmali164 2020-02-12 15:11:07
Hello guys .
dineshmali164 2020-02-12 15:11:23
Anybody know about coinspayment
MatPk 2020-02-12 15:17:43
zmtrn 2020-02-12 15:08:11
Queue:work is a artisan command! Have u ever scheduled any command?! If yes this is the same and if not check laravel doc it’s easy

solved ty

2020-02-12 15:38:15
2020-02-12 08:02:42
Help me sir

anyone know the solution

skys215 2020-02-12 15:54:14
2020-02-12 14:34:28

show the full error

skys215 2020-02-12 15:54:42
we need to know which file and which line has warning
PHP Begginer 2020-02-12 16:07:29
I am trying to show one record via api with resource by i get an error when i send a request Property [title] does not exist on this collection instance. The property is looks to be appeared in database .
PHP Begginer 2020-02-12 16:08:16
public function show(Poll $poll)
{
$poll = Poll::find($poll);

if (is_null($poll)){
return response()->json(null,400);
}
// Transformer
$response = new PollResource (Poll::findOrFail($poll), 200);
return response()->json($response, 200);
// return response()->json($poll,200);
}

PHP Begginer 2020-02-12 16:08:38
my resource
PHP Begginer 2020-02-12 16:08:40
class Poll extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param IlluminateHttpRequest $request
* @return array
*/
public function toArray($request)
{
return [

‘title’ => mb_strimwidth($this->title ,0, 5, ‘…’),

];
}
}

PHP Begginer 2020-02-12 16:10:35
can someone assist please
RayhanYulanda 2020-02-12 16:21:39
i’m using attendize laravel but i’m still confusing how to use the api in postman. can anybody help me?
https://github.com/Attendize/Attendize/issues/752

How to use API in postman? · Issue #752 · Attendize/AttendizeGitHub
i need to test attendize.com/api/attendees/ but i’m still confusing how to use it and test it in postman. any ideas? where should i put email password and api_token? header? form-data? or x…
skys215 2020-02-12 16:23:24
PHP Begginer 2020-02-12 16:08:16
public function show(Poll $poll)
{
$poll = Poll::find($poll);

if (is_null($poll)){
return response()->json(null,400);
}
// Transformer
$response = new PollResource (Poll::findOrFail($poll), 200);
return response()->json($response, 200);
// return response()->json($poll,200);
}

try dump($poll); see if title exists

PHP Begginer 2020-02-12 16:23:57
laravel_discuss-26432.jpg
output
skys215 2020-02-12 16:27:32
PHP Begginer 2020-02-12 16:23:57
output

laravel_discuss-26433.jpg
first, you already got the Poll, why you need to get it again?

skys215 2020-02-12 16:27:45
I assumed that find() method needs an ID to find a record
skys215 2020-02-12 16:30:33
PHP Begginer 2020-02-12 16:23:57
output

secondly, $response = new PollResource (Poll::findOrFail($poll), 200);
you are passing 200 as second argument when instantiating PollResource, but as far as I know, PollResource only accept 1 argument, try remove 200 from it and try again

PHP Begginer 2020-02-12 16:32:02
Thank you very much ,it works
skys215 2020-02-12 16:36:31
PHP Begginer 2020-02-12 16:32:02
Thank you very much ,it works

yeah

skys215 2020-02-12 16:37:18
Check how the code is detecting you are you not loged in or not authenticated
skys215 2020-02-12 16:40:51
laravel_discuss-26440.jpg

skys215 2020-02-12 16:41:14
laravel_discuss-26441.jpg

skys215 2020-02-12 16:42:13
skys215 2020-02-12 16:41:14

https://laravel.com/docs/6.x/api-authentication

2020-02-12 16:45:05
https://rjnew2020.blogspot.com/2020/01/what-is-valentines-day-what-is-14.html
skys215 2020-02-12 16:46:05
2020-02-12 16:45:05
https://rjnew2020.blogspot.com/2020/01/what-is-valentines-day-what-is-14.html

Off topic

2020-02-12 16:46:21
https://rjnew2020.blogspot.com/2020/01/what-is-valentines-day-what-is-14.html
skys215 2020-02-12 16:46:46
2020-02-12 16:46:21
https://rjnew2020.blogspot.com/2020/01/what-is-valentines-day-what-is-14.html

off topic

RayhanYulanda 2020-02-12 16:57:52
skys215 2020-02-12 16:42:13
https://laravel.com/docs/6.x/api-authentication

thankss it works!

zmtrn 2020-02-12 17:07:18
zmtrn 2020-02-09 22:01:44
Hi there,
I’m working with laravel 6
Have the session restart issue: it will start through each request!
So I cannot use even simple post request since the csrf token works with sessions..

Need help 🙏🙏

Ok, so I put a val in session and after form submission it would say its null!!

dacrixk 2020-02-12 17:37:17
Buddy
dacrixk 2020-02-12 17:37:37
How can I upload file to Digitalocean space with Laravel api
dacrixk 2020-02-12 17:37:42
I m getting error
|