Hey all, can I get any tips or help in deploying laravel app on Google cloud Run and CloudSQL?

|
e3ximroot 2022-02-02 23:58:08
Eng0sama_001 2022-02-02 23:02:41
Why did not Token?

For information, use a library JWT

Try sanctum

e3ximroot 2022-02-03 00:01:02
dhairya137 2022-02-02 20:43:46

Read the error log at
/var/log/nginx/error.log

littlefish111 2022-02-03 02:51:00
laravel_discuss-106943.jpg
What Im doing wrong here? Im getting nothing back :-/ Checked the query in phpMyAdmin its fine
DesolatorMagno 2022-02-03 02:51:39
That compact is not necesary in that case.
littlefish111 2022-02-03 02:51:51
DesolatorMagno 2022-02-03 02:51:39
That compact is not necesary in that case.

Im getting anyway nothing back

littlefish111 2022-02-03 02:52:18
but thank you ❀️
DesolatorMagno 2022-02-03 02:52:59
Try doing the same consult in Tinker.
littlefish111 2022-02-03 02:53:35
DesolatorMagno 2022-02-03 02:52:59
Try doing the same consult in Tinker.

Oh you’ve solved it πŸ˜†Thank you very much

smartdev16 2022-02-03 07:09:37
OK
smartdev16 2022-02-03 07:09:49
Got it
Rasif Sahl 2022-02-03 07:31:26
Sure sorry for that i will.
dhairya137 2022-02-03 08:06:10
Now getting this in error.log
2022/02/03 05:04:23 [error] 20574#20574: *6 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 43.24, server: 3.136, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “3.136.”
2022/02/03 05:04:27 [error] 20611#20611: *8 access forbidden by rule, client: 43.241., server: 3.136., request: “GET /install HTTP/1.1”, host: “3.1361”
2022/02/03 05:04:31 [crit] 20611#20611: *8 stat() “/var/www/bash/public/” failed (13: Permission denied), client: 43.24, server: 3.136., request: “GET / HTTP/1.1”, host: “3.136”
2022/02/03 05:04:31 [crit] 20611#20611: *8 stat() “/var/www/bash/public/index.html” failed (13: Permission denied), client: 43.24, server: 3.13 request: “GET / HTTP/1.1”, host: “3.136.”
2022/02/03 05:04:31 [crit] 20611#20611: *8 realpath() “/var/www/bash/public” failed (13: Permission denied), client: 43.241., server: 3.136, request: “GET / HTTP/1.1”, host: “3.136.”
dhairya137 2022-02-03 08:06:25
what is this permission denied
e3ximroot 2022-02-03 08:24:05
dhairya137 2022-02-03 08:06:10
Now getting this in error.log
2022/02/03 05:04:23 [error] 20574#20574: *6 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 43.24, server: 3.136, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “3.136.”
2022/02/03 05:04:27 [error] 20611#20611: *8 access forbidden by rule, client: 43.241., server: 3.136., request: “GET /install HTTP/1.1”, host: “3.1361”
2022/02/03 05:04:31 [crit] 20611#20611: *8 stat() “/var/www/bash/public/” failed (13: Permission denied), client: 43.24, server: 3.136., request: “GET / HTTP/1.1”, host: “3.136”
2022/02/03 05:04:31 [crit] 20611#20611: *8 stat() “/var/www/bash/public/index.html” failed (13: Permission denied), client: 43.24, server: 3.13 request: “GET / HTTP/1.1”, host: “3.136.”
2022/02/03 05:04:31 [crit] 20611#20611: *8 realpath() “/var/www/bash/public” failed (13: Permission denied), client: 43.241., server: 3.136, request: “GET / HTTP/1.1”, host: “3.136.”

Make sure the user who is owned the project folder is nginx user

dhairya137 2022-02-03 08:27:14
e3ximroot 2022-02-03 08:24:05
Make sure the user who is owned the project folder is nginx user

www-data?

e3ximroot 2022-02-03 08:27:34
dhairya137 2022-02-03 08:27:14
www-data?

Yes

e3ximroot 2022-02-03 08:29:18
dhairya137 2022-02-03 08:27:14
www-data?

Try this
https://stackoverflow.com/questions/60869515/nginx-showing-403-forbidden

Nginx showing 403 forbiddenStack Overflow
I have hosted react app on nginx, when i try to access any file with extension (e.g favicon.ico), nginx throws 403 forbidden error although it works fine for basic app routing i.e, for files without
dhairya137 2022-02-03 08:30:29
e3ximroot 2022-02-03 08:29:18
Try this
https://stackoverflow.com/questions/60869515/nginx-showing-403-forbidden

I have done this

e3ximroot 2022-02-03 08:31:46
Did you Reload the nginx ?
dhairya137 2022-02-03 08:44:30
e3ximroot 2022-02-03 08:31:46
Did you Reload the nginx ?

Yes

2022-02-03 09:29:32
Anyone need any assignment or academic help??? I can help you
njenga55 2022-02-03 09:30:22
Https://pstudioh.com

hire/work remote in kenyaPstudioh
Hire work remotely with ease from the vast project management tools and skills provided by Project Studioh!
lord_gatsby 2022-02-03 10:13:41
Hey all, can I get any tips or help in deploying laravel app on Google cloud Run and CloudSQL?
Guudu 😊 2022-02-03 10:41:41
How to get query string data?
bryan_king 2022-02-03 10:47:48
Guudu 😊 2022-02-03 10:41:41
How to get query string data?

Request->input(query)

S 2022-02-03 10:50:12
Anyone know about this
I’m using toastr for display message in that while inserting data popup is came but text is not coming
teammixer 2022-02-03 11:14:11
SymfonyComponentErrorHandlerErrorFatalError
Declaration of AppHttpMiddlewareAuthenticate::handle($request, Closure $next) must be compatible with IlluminateAuthMiddlewareAuthenticate::handle($request, Closure $next, …$guards)

πŸ‘‰ public function handle($request, Closure $next)

{

if (! $this->auth->check()) {

return redirect()->to(‘/login’)

->with(‘status’, ‘success’)

->with(‘message’, ‘Please login.’);

}
please help to fix ?

Ojsholly 2022-02-03 11:16:41
Guudu 😊 2022-02-03 10:41:41
How to get query string data?

You could also use request()->query(‘param’). request()->query() returns all query params as an array.

Amit Sharma 2022-02-03 11:45:04
laravel_discuss-106983.jpg

Amit Sharma 2022-02-03 11:47:45
anyone ? how to resolve this … i have downloaded a project from a server trying to run localhost it shows me error
Ojsholly 2022-02-03 11:48:09
Delete your vendor folder and run composer install
Amit Sharma 2022-02-03 11:48:49
ok let me try
Amit Sharma 2022-02-03 11:52:07
Ojsholly 2022-02-03 11:48:09
Delete your vendor folder and run composer install

same error

Amit Sharma 2022-02-03 11:53:08
i think the vendor folder should be inside the public folder
bryan_king 2022-02-03 12:12:06
teammixer 2022-02-03 11:14:11
SymfonyComponentErrorHandlerErrorFatalError
Declaration of AppHttpMiddlewareAuthenticate::handle($request, Closure $next) must be compatible with IlluminateAuthMiddlewareAuthenticate::handle($request, Closure $next, …$guards)

πŸ‘‰ public function handle($request, Closure $next)

{

if (! $this->auth->check()) {

return redirect()->to(‘/login’)

->with(‘status’, ‘success’)

->with(‘message’, ‘Please login.’);

}
please help to fix ?

Add the …$guard parameter in your middleware after the $next . If you are overriding a class method, The method signature must be the same

|