Anyone know why second code get error?

|
nazmulpcc 2021-02-12 13:52:49
alancbhn 2021-02-12 13:43:18
Is someone here that can help guiding me to deploy an app to Google Cloud? c:

what do you need?

arierwan 2021-02-12 13:54:42
laravel_discuss-69959.jpg
#ask
i try to update with code like this,
if I using first code (cara 1) it will update data
but when I use second code (cara 2) I get some error
arierwan 2021-02-12 13:55:03
laravel_discuss-69960.jpg
here is the error
arierwan 2021-02-12 13:55:59
laravel_discuss-69961.jpg
I already create fillable in my model, but when I add new column (views) it get error
arierwan 2021-02-12 13:57:01
anyone know why second code get error ?
veddishant 2021-02-12 13:58:59
arierwan 2021-02-12 13:57:01
anyone know why second code get error ?

Bcz your table has not views column first add it

veddishant 2021-02-12 14:00:23
arierwan 2021-02-12 13:55:59
I already create fillable in my model, but when I add new column (views) it get error

And in cas1 you can’t error bcz you have not add views in fillable array so its already black listed
And in case2 its not mass assignment
So it will check for all column you have assign set

alancbhn 2021-02-12 14:05:54
nazmulpcc 2021-02-12 13:52:49
what do you need?

I need a clear “step-by-step” of what I need to deploy my site. I tried some stuff I saw in internet but it keep on failing

alancbhn 2021-02-12 14:06:15
nazmulpcc 2021-02-12 13:52:49
what do you need?

Can I write to you in private?

arierwan 2021-02-12 14:12:32
veddishant 2021-02-12 14:00:23
And in cas1 you can’t error bcz you have not add views in fillable array so its already black listed
And in case2 its not mass assignment
So it will check for all column you have assign set

ohh, so fillable only work on mass assignment,
thank you for the info

nazmulpcc 2021-02-12 14:13:57
alancbhn 2021-02-12 14:06:15
Can I write to you in private?

sure

Ayushi2020 2021-02-12 14:50:14
https://www.linkedin.com/posts/ayushi-goel-066818152_laravel-laraveldevelopers-laraveldeveloper-activity-6765958108121481216-XGuv

Ayushi Goel on LinkedIn: #laravel #laraveldevelopers #laraveldeveloperLinkedin
NovoStack is looking to hire Laravel developers.
Experience – a minimum of 2 years.
Location – Noida.
Workdays – Monday to Friday.

Job Description:
> …

dhenish 2021-02-12 15:02:55
Anyone… Know how to Fraction Value Convert to string JavaScript anyone know ????
parmonov98 2021-02-12 16:41:28
laravel_discuss-69975.jpg

parmonov98 2021-02-12 16:41:28
laravel_discuss-69974.jpg
hello, guys!
I’m using jwt. I created the middleware for jwt, and created another one isRecruiterAdmin.

in the jwt middlreware everything works well.

When I wanna get authed user in inner middleware, I get null.
both haven’t worked. why ? and how can I fix this?

I have tried`$request->user()` too. but no success.

Jonte97 2021-02-12 17:01:54
https://palscity.com/register?ref=johnmwangi

Palscity – A City of Friends – Social Media – Connect, Share, DiscoverPalscity
Palscity is a Social Media, Business Networking & Leaders Platform. With our new feature, users can react to posts, photos, audios and connect with friends within their network. Pals city, Palcity, Pal city
Jonte97 2021-02-12 17:02:45
Jonte97 2021-02-12 17:01:54
https://palscity.com/register?ref=johnmwangi

kenyan made social media app

rashadpoovannur 2021-02-12 17:57:13
laravel_discuss-69981.jpg

rashadpoovannur 2021-02-12 17:57:13
laravel_discuss-69980.jpg
Getting diffrent day
Maranmani_dev 2021-02-12 18:19:21
Any tamil people here?
TheFeLuM 2021-02-12 18:28:38
Any one know how to assigng one roles to the Teacher with extends Users

question is: I create User::create…
if type is teacher then attach it role Teacher
i use morphto for user roles and when i try to do
Tutor::find($user->id)->assignRole(Role::TEACHER);
i got can’t assign on null

Ram 2021-02-12 18:28:39
Maranmani_dev 2021-02-12 18:19:21
Any tamil people here?

Yes

TheFeLuM 2021-02-12 18:28:50
laravel_discuss-69986.jpg

DesolatorMagno 2021-02-12 18:54:56
TheFeLuM 2021-02-12 18:28:38
Any one know how to assigng one roles to the Teacher with extends Users

question is: I create User::create…
if type is teacher then attach it role Teacher
i use morphto for user roles and when i try to do
Tutor::find($user->id)->assignRole(Role::TEACHER);
i got can’t assign on null

You need to be careful with roles and multiples model, remember that is a morph relationship so it store into database the name of the model, in the end it can make it harder to work

Myke 2021-02-12 19:13:59
Hello.selling ekommart wordpress them at half the amount.Initial cost is $59 offering it at $3 .Had purchased for a project only to get rejected by customer
Kriti Agarwal 2021-02-12 19:50:50
Pls help in below requirement-

Find no of days between 2 dates-
Ex- 08-02-2021 and 10-02-2021 should return 2 days in PHP

gaidyjg 2021-02-12 19:59:48
Kriti Agarwal 2021-02-12 19:50:50
Pls help in below requirement-

Find no of days between 2 dates-
Ex- 08-02-2021 and 10-02-2021 should return 2 days in PHP

date_diff($date1, $date2);

gaidyjg 2021-02-12 20:00:22
Kriti Agarwal 2021-02-12 19:50:50
Pls help in below requirement-

Find no of days between 2 dates-
Ex- 08-02-2021 and 10-02-2021 should return 2 days in PHP

https://www.php.net/manual/es/function.date-diff.php

Kriti Agarwal 2021-02-12 20:00:23
Ex- 08-01-2021 and 08-01-2021

I get 0 but i want 1

DesolatorMagno 2021-02-12 20:02:40
Kriti Agarwal 2021-02-12 20:00:23
Ex- 08-01-2021 and 08-01-2021

I get 0 but i want 1

0 + 1 = 1
That fix it.

2021-02-12 20:23:52
How to get laravel error messages in multi language
2021-02-12 20:24:27
Anyone know
DesolatorMagno 2021-02-12 20:29:25
In the documentation say how.
DesolatorMagno 2021-02-12 20:29:42
There is a language file for errors
natghi2010 2021-02-12 21:39:34
DesolatorMagno 2021-02-12 20:02:40
0 + 1 = 1
That fix it.

I dont understand

|