I meant for a basic project, is it enough?

|
web design 2021-11-26 10:43:15
nowodev 2021-11-26 10:41:21
You’re inseritng a record into the db with an id that already exists

My code is like this

nowodev 2021-11-26 10:43:54
web design 2021-11-26 10:43:15
My code is like this

Let me see

web design 2021-11-26 10:44:49
nowodev 2021-11-26 10:43:54
Let me see

laravel_discuss-100737.jpg

web design 2021-11-26 10:45:53
web design 2021-11-26 10:44:49

The error come from line of 126

web design 2021-11-26 10:52:05
nowodev 2021-11-26 10:43:54
Let me see

Can you help me?

web design 2021-11-26 10:52:18
nowodev 2021-11-26 10:43:54
Let me see

Do you know?

nowodev 2021-11-26 10:55:37
It’s coming from line 124
nowodev 2021-11-26 10:58:24
web design 2021-11-26 10:44:49

If the query already knows which id to update, you shouldn’t pass in the id again.

nowodev 2021-11-26 10:58:44
$filter_item->values()->updateOrCreate([
‘value’ => $value,
]);

try this

nowodev 2021-11-26 10:59:11
nowodev 2021-11-26 10:58:44
$filter_item->values()->updateOrCreate([
‘value’ => $value,
]);

try this

$filter_item->values()->updateOrCreate([
‘id’ => $item[‘id’] ?? null,
‘value’ => $value,
]);

or this. Any of the two

Ahmad_AM0 2021-11-26 11:00:52
I’m new to Laravel, I have a project to work on with a friend, so to facilitate the process, I upload it to Github using Github desktop, my question is will new files be uploaded automatically to Github ?
nowodev 2021-11-26 11:01:40
Ahmad_AM0 2021-11-26 11:00:52
I’m new to Laravel, I have a project to work on with a friend, so to facilitate the process, I upload it to Github using Github desktop, my question is will new files be uploaded automatically to Github ?

When you push, yes

Ahmad_AM0 2021-11-26 11:02:35
nowodev 2021-11-26 11:01:40
When you push, yes

I just did a small tutorial on how to push, pull, make repository, merge, is that enough ?

Ahmad_AM0 2021-11-26 11:03:39
Do I need to know more ?
nowodev 2021-11-26 11:05:00
Ahmad_AM0 2021-11-26 11:03:39
Do I need to know more ?

As time goes on, yeah
You’ll need to learn more
But it’s best to not get overwhelmed at first.
Just learngradually, constantly and consistently.

Ahmad_AM0 2021-11-26 11:05:53
nowodev 2021-11-26 11:05:00
As time goes on, yeah
You’ll need to learn more
But it’s best to not get overwhelmed at first.
Just learngradually, constantly and consistently.

I meant for a basic project, is it enough ?

nowodev 2021-11-26 11:06:20
Ahmad_AM0 2021-11-26 11:05:53
I meant for a basic project, is it enough ?

Yup

nowodev 2021-11-26 11:06:42
Pull, push, merge, amend.
Ahmad_AM0 2021-11-26 11:07:04
What is amend ?
nowodev 2021-11-26 11:07:47
Amending a commit
web design 2021-11-26 11:07:51
nowodev 2021-11-26 10:59:11
$filter_item->values()->updateOrCreate([
‘id’ => $item[‘id’] ?? null,
‘value’ => $value,
]);

or this. Any of the two

I SEE THIS ERROR

web design 2021-11-26 11:08:03
laravel_discuss-100758.jpg

Ahmad_AM0 2021-11-26 11:08:51
nowodev 2021-11-26 11:07:47
Amending a commit

Pushing a commit ?

Ahmad_AM0 2021-11-26 11:09:30
Is it the same ?
web design 2021-11-26 11:11:02
nowodev 2021-11-26 10:58:44
$filter_item->values()->updateOrCreate([
‘value’ => $value,
]);

try this

laravel_discuss-100761.jpg
Look at this pic, for example

web design 2021-11-26 11:11:56
nowodev 2021-11-26 10:58:44
$filter_item->values()->updateOrCreate([
‘value’ => $value,
]);

try this

I have 4 values

web design 2021-11-26 11:13:36
nowodev 2021-11-26 10:58:44
$filter_item->values()->updateOrCreate([
‘value’ => $value,
]);

try this

Now i did not add group and sub group , I click on submit only

Somewherewithmahim 2021-11-26 11:13:58
nowodev 2021-11-26 09:19:00
https://github.com/svenluijten/artisan-view

thanks brother

nowodev 2021-11-26 11:14:15
web design 2021-11-26 11:13:36
Now i did not add group and sub group , I click on submit only

text me privately

web design 2021-11-26 11:14:15
Now I see 6 values
Edifice_Solutions 2021-11-26 12:32:13
Am using php cron job,, I don’t what to be running php artisan schedule:run everything I want to see my commands run,,, how can I do it that it will be running by itself,,, using windows. and localhost
Lolmanian 2021-11-26 12:37:30
Edifice_Solutions 2021-11-26 12:32:13
Am using php cron job,, I don’t what to be running php artisan schedule:run everything I want to see my commands run,,, how can I do it that it will be running by itself,,, using windows. and localhost

Why not just use the command name directly instead of using schedule:run

Edifice_Solutions 2021-11-26 12:40:27
Lolmanian 2021-11-26 12:37:30
Why not just use the command name directly instead of using schedule:run

It works,,,but I want to schedule it to run daily,,, like every 0.00am,,, but what if my system is down,, I have to always run : php artisan schedule:run

Edifice_Solutions 2021-11-26 12:40:42
Is there no way I can do it just like server
sbruder 2021-11-26 12:55:20
Edifice_Solutions 2021-11-26 12:40:42
Is there no way I can do it just like server

you create a cronjob to execute php artisan schedule:run every minute, that’s the way.

|