Can anyone help with this?

|
Acird Burn 2021-10-30 12:56:07
do we have any very good designers here xd and figma Visual Designer kindly inbox if u know of any very good and creative UI/UX Designer
fullyundetectablepayload 2021-10-30 13:27:45
Tererai Mugova 2021-10-30 11:58:10
Has the absolute path worked?

Not tried, Lemme try

fullyundetectablepayload 2021-10-30 13:38:16
laravel_discuss-98524.jpg

kindatired 2021-10-30 13:40:00
https://laravelexample.com/custom-eloquent-query-builder-class-local-scopes-class

Custom Eloquent Query Builder Class (local scopes Class)Laravel Example
Lets refactor our Laravel Eloquent models using a underrated a class based query scope.
Faisal Alowaini 2021-10-30 14:53:10
laravel_discuss-98527.jpg

Faisal Alowaini 2021-10-30 14:53:21
hello
i just start learning laravel, and tried post request and i got this error

what does it mean

amanrajtoppoart 2021-10-30 14:59:37
Faisal Alowaini 2021-10-30 14:53:10

You have to provide array to your models create method
Like
User::create([‘name’=>$request->name,’email’=>$request->email])

Faisal Alowaini 2021-10-30 15:10:35
amanrajtoppoart 2021-10-30 14:59:37
You have to provide array to your models create method
Like
User::create([‘name’=>$request->name,’email’=>$request->email])

laravel_discuss-98531.jpg
i did it like this
whatever in the request body add it

bryan_king 2021-10-30 15:15:58
Faisal Alowaini 2021-10-30 15:10:35
i did it like this
whatever in the request body add it

Request->validated()

natghi2010 2021-10-30 15:21:07
trust in php and it will come to you
Faisal Alowaini 2021-10-30 15:30:16
bryan_king 2021-10-30 15:15:58
Request->validated()

validated does not exist!

Faisal Alowaini 2021-10-30 15:36:00
amanrajtoppoart 2021-10-30 14:59:37
You have to provide array to your models create method
Like
User::create([‘name’=>$request->name,’email’=>$request->email])

👍🏻x

VirtualDemon 2021-10-30 15:36:38
Faisal Alowaini 2021-10-30 15:10:35
i did it like this
whatever in the request body add it

$request->all()

theres a parenthes between object and method

Faisal Alowaini 2021-10-30 15:39:54
VirtualDemon 2021-10-30 15:36:38
$request->all()

theres a parenthes between object and method

thanks 👍🏻

fullyundetectablepayload 2021-10-30 19:21:06
Tererai Mugova 2021-10-30 11:58:10
Has the absolute path worked?

laravel_discuss-98545.jpg

spykelionel 2021-10-30 19:21:58
kindatired 2021-10-30 13:40:00
https://laravelexample.com/custom-eloquent-query-builder-class-local-scopes-class

Cool

fullyundetectablepayload 2021-10-30 19:22:54
fullyundetectablepayload 2021-10-30 19:21:06

Can anyone help with this?

Silambarasan Raju 2021-10-30 19:23:55
fullyundetectablepayload 2021-10-30 19:22:54
Can anyone help with this?

There is no table named users

Yousefroot 2021-10-30 19:24:43
fullyundetectablepayload 2021-10-30 19:21:06

you need to migrate your table

Silambarasan Raju 2021-10-30 19:25:35
Yousefroot 2021-10-30 19:24:43
you need to migrate your table

Ya php artisan migrate

fullyundetectablepayload 2021-10-30 19:37:31
Yousefroot 2021-10-30 19:24:43
you need to migrate your table

Tried migrating it says permission denied

Silambarasan Raju 2021-10-30 19:38:12
Are u using mysql driver
akshay sardana 2021-10-30 19:42:01
fullyundetectablepayload 2021-10-30 19:21:06

Users table is missing

itspirate 2021-10-30 19:45:23
Guys I need a help
I made a web application with laravel
And hosted to cloud server with 16 gig ram + 4core

64 numbers users use it simultaneously but it’s very slow I mean page taking about 8 to 10 sec to load

Need some suggestions do I need to increase resources ?

EmmanuelTorty 2021-10-30 20:02:54
fullyundetectablepayload 2021-10-30 19:37:31
Tried migrating it says permission denied

Check your database configurations in .env file

fullyundetectablepayload 2021-10-30 20:02:55
akshay sardana 2021-10-30 19:42:01
Users table is missing

laravel_discuss-98556.jpg
How about this ?

fullyundetectablepayload 2021-10-30 20:03:12
EmmanuelTorty 2021-10-30 20:02:54
Check your database configurations in .env file

Migration successful now says db is readonly

akshay sardana 2021-10-30 20:05:09
fullyundetectablepayload 2021-10-30 20:02:55
How about this ?

You need to run two commands

First, change ownership of the Laravel directory to web group:

sudo chown -R :www-data /var/www/yourLarvelFolder

Second, give privileges over storage directory so it can be writable:

sudo chmod -R 775 /var/www/yourLarvelFolder/storage

akshay sardana 2021-10-30 20:06:37
itspirate 2021-10-30 19:45:23
Guys I need a help
I made a web application with laravel
And hosted to cloud server with 16 gig ram + 4core

64 numbers users use it simultaneously but it’s very slow I mean page taking about 8 to 10 sec to load

Need some suggestions do I need to increase resources ?

maybe u need to optimize your queries

itspirate 2021-10-30 20:08:02
akshay sardana 2021-10-30 20:06:37
maybe u need to optimize your queries

Someone saying eloquent queries are slow

akshay sardana 2021-10-30 20:08:45
can u show me your queries?
itspirate 2021-10-30 20:09:37
akshay sardana 2021-10-30 20:08:45
can u show me your queries?

Sorry , I will contact you later now am not in front of pc

akshay sardana 2021-10-30 20:10:08
ok dude you can also use Laravel Debugbar package for checking which query is heavy
itspirate 2021-10-30 20:10:15
But still have a question how should I manage queries a lit bit suggestions
itspirate 2021-10-30 20:11:23
akshay sardana 2021-10-30 20:10:08
ok dude you can also use Laravel Debugbar package for checking which query is heavy

Ok thank you brother 😄

|