If I want to delete after a minute should I use everyMinute function?

|
Pro 2020-12-07 11:12:35
Much better
Pro 2020-12-07 11:13:04
rashadpoovannur 2020-12-07 11:10:15
Is it correct for subdomain routing

It should be a cname

rashadpoovannur 2020-12-07 11:19:39
Pro 2020-12-07 11:13:04
It should be a cname

It showing 403

2020-12-07 12:25:29
Hello I want to create a story like to do. What languages should I use
mrgafury 2020-12-07 12:38:56
I am developing a Shopping cart application and I am needing help about storing cart items using $_SESSION.

The Concept

When user clicks on Add to Cart, the following information is stored: Product ID e.g. 5312, Product Name, Product Quantity, Product Rules (e.g. color : white, size : medium and so on)

The problem

The problem is that when I save the entry in $_SESSION by item ID. I want to assume the following:

User adds 1 item of product #11 which color is white

User then adds 2 items of product #11 which color is blue

If I save by item ID, the info will be overridden always, I want to make each call / each add to cart unique because I am assuming he may add different sizes, different colors of the same product.

How can I come over such a problem?

Any ideas or inputs are greatly appreciated.

2020-12-07 12:53:22
mrgafury 2020-12-07 12:38:56
I am developing a Shopping cart application and I am needing help about storing cart items using $_SESSION.

The Concept

When user clicks on Add to Cart, the following information is stored: Product ID e.g. 5312, Product Name, Product Quantity, Product Rules (e.g. color : white, size : medium and so on)

The problem

The problem is that when I save the entry in $_SESSION by item ID. I want to assume the following:

User adds 1 item of product #11 which color is white

User then adds 2 items of product #11 which color is blue

If I save by item ID, the info will be overridden always, I want to make each call / each add to cart unique because I am assuming he may add different sizes, different colors of the same product.

How can I come over such a problem?

Any ideas or inputs are greatly appreciated.

You look at bagisto it would solve you lots of hours in development

Jadidi_82 2020-12-07 12:58:47
hi guys how can I automatically remove all of my data in databace after period of time?
hypernxf 2020-12-07 12:59:42
Are you familiar with Scheduler?
hypernxf 2020-12-07 13:01:21
mrgafury 2020-12-07 12:38:56
I am developing a Shopping cart application and I am needing help about storing cart items using $_SESSION.

The Concept

When user clicks on Add to Cart, the following information is stored: Product ID e.g. 5312, Product Name, Product Quantity, Product Rules (e.g. color : white, size : medium and so on)

The problem

The problem is that when I save the entry in $_SESSION by item ID. I want to assume the following:

User adds 1 item of product #11 which color is white

User then adds 2 items of product #11 which color is blue

If I save by item ID, the info will be overridden always, I want to make each call / each add to cart unique because I am assuming he may add different sizes, different colors of the same product.

How can I come over such a problem?

Any ideas or inputs are greatly appreciated.

in Shopify this is call “Variants” Instead of storing ItemID in Session, you can consider combining it with a variant ID if you have. If not then just the text

Jadidi_82 2020-12-07 13:01:39
hypernxf 2020-12-07 12:59:42
Are you familiar with Scheduler?

I havent used

hypernxf 2020-12-07 13:01:51
like $_SESSION[‘5312-white’] instead of $_SESSION[‘5312’]
hypernxf 2020-12-07 13:02:34
Jadidi_82 2020-12-07 13:01:39
I havent used

Laravel Scheduler allows you to schedule task to be performed during a certain interval
https://laravel.com/docs/8.x/scheduling

Jadidi_82 2020-12-07 13:03:59
if I want to delete after a minute should I use everyMinute function?
Jadidi_82 2020-12-07 13:08:09
laravel_discuss-61582.jpg
I used that but it doesnt work can you tell me what’s wrong?
Atul 2020-12-07 13:17:17
How to send welcome email after user verify their email…..help me
hypernxf 2020-12-07 13:37:38
Jadidi_82 2020-12-07 13:03:59
if I want to delete after a minute should I use everyMinute function?

if you want to do it like this, look at

https://laravel.com/docs/8.x/scheduling#defining-schedules

mrgafury 2020-12-07 13:45:57
hypernxf 2020-12-07 13:01:51
like $_SESSION[‘5312-white’] instead of $_SESSION[‘5312’]

laravel_discuss-61585.jpg
this is my code. How can i solve this problem?

Jadidi_82 2020-12-07 13:53:05
hypernxf 2020-12-07 13:37:38
if you want to do it like this, look at

https://laravel.com/docs/8.x/scheduling#defining-schedules

laravel_discuss-61587.jpg
I think somehow this would be true but it doesnt delete anything

Jadidi_82 2020-12-07 13:53:17
do you know what is wrong?
hypernxf 2020-12-07 13:53:54
did your run your scheduler?
Jadidi_82 2020-12-07 13:54:05
no
hypernxf 2020-12-07 13:54:10
Also make sure you remove those code that is not in the call function
hypernxf 2020-12-07 13:54:44
php artisan schedule:work
Jadidi_82 2020-12-07 13:56:17
hypernxf 2020-12-07 13:53:54
did your run your scheduler?

how to run that I didnt see anything about run in document

hypernxf 2020-12-07 13:56:33
https://laravel.com/docs/8.x/scheduling#starting-the-scheduler-locally
Jadidi_82 2020-12-07 14:00:41
laravel_discuss-61595.jpg

Jadidi_82 2020-12-07 14:00:57
there is sth wrong
Jadidi_82 2020-12-07 14:01:41
I think I should use run instead of work
Jadidi_82 2020-12-07 14:03:09
laravel_discuss-61598.jpg
and if I use run it says 👆
hypernxf 2020-12-07 14:12:51
Ok version difference I guess
2020-12-07 16:36:54
does anybody have created charts / any graphical representation of data from database ? need help.
mynameisbrad 2020-12-07 17:21:51
Yo guys, whats a proper way to queue a job and not call it to be executed directly? Now my code is:
mynameisbrad 2020-12-07 17:22:04
$this->dispatch(new YodelDailyJob($data));
mynameisbrad 2020-12-07 17:23:03
My goal is to put it in queue in the database so it will be executed afterwards
Ldrago003 2020-12-07 17:34:36
@mynameisbrad can you share value of the key QUEUE_CONNECTION from your env file
|