Can anyone tell me how to solve this error of Database?

|
Goku 2021-07-24 10:55:10
may be it’s very silly question
but their is anyway we can convert laravel 5.8 project in laravel 8 project
if yes then how?
please reply
Fred_ki 2021-07-24 10:59:35
DesolatorMagno 2021-07-23 20:53:49
Did you follow a guide to publish your site in a shared hosting?

yeah i did

Goku 2021-07-24 11:11:31
DesolatorMagno 2021-07-23 20:53:49
Did you follow a guide to publish your site in a shared hosting?

many ways to do..

Fred_ki 2021-07-24 11:20:54
i followed but i am not getting any error log?
Goku 2021-07-24 11:29:13
we can direct upload..then just need to call public/index.php
Vikas Chandra B 2021-07-24 11:32:46
laravel_discuss-89209.jpg
I want to pass my javascript variable data to PHP variable. I am using this method and I am getting blank data. Can anyone help me out!!
DealersYard 2021-07-24 11:38:43
Vikas Chandra B 2021-07-24 11:32:46
I want to pass my javascript variable data to PHP variable. I am using this method and I am getting blank data. Can anyone help me out!!

Solution is in Laravel doc. Create stacks in root template then use @push blade directive

https://laravel.com/docs/8.x/blade#stacks

Vikas Chandra B 2021-07-24 11:39:59
Thank you @CursorStartups
Bhuvi100 2021-07-24 11:42:18
DealersYard 2021-07-24 11:38:43
Solution is in Laravel doc. Create stacks in root template then use @push blade directive

https://laravel.com/docs/8.x/blade#stacks

LoL He needs to pass JS variable to a php variable and it seems he is not using Laravel as well

Bhuvi100 2021-07-24 11:43:27
Vikas Chandra B 2021-07-24 11:32:46
I want to pass my javascript variable data to PHP variable. I am using this method and I am getting blank data. Can anyone help me out!!

You cant do like that. PHP scripts are rendered on the server, so they run before even coming into the client’s browser where actually the js starts to run

Vikas Chandra B 2021-07-24 11:44:18
Bhuvi100 2021-07-24 11:43:27
You cant do like that. PHP scripts are rendered on the server, so they run before even coming into the client’s browser where actually the js starts to run

Is there any alterate solution. Because I want to use that data in if statement

Phemorah 2021-07-24 11:45:12
Bhavyakumar Panchotiya 2021-07-24 09:53:12
can anyone tell me how to solve this error of Database ??

Did you try to import the DB from an SQL file?

Bhuvi100 2021-07-24 11:45:20
Vikas Chandra B 2021-07-24 11:44:18
Is there any alterate solution. Because I want to use that data in if statement

Do you need the js variable’s data in the same page and render it using PHP?

Vikas Chandra B 2021-07-24 11:48:19
Bhuvi100 2021-07-24 11:45:20
Do you need the js variable’s data in the same page and render it using PHP?

Yes its in same page

Phemorah 2021-07-24 11:48:22
Goku 2021-07-24 10:55:10
may be it’s very silly question
but their is anyway we can convert laravel 5.8 project in laravel 8 project
if yes then how?
please reply

Sure, you can.

Firstly, you need to update the composer.json file and next: run composer update

Bhuvi100 2021-07-24 11:49:01
Vikas Chandra B 2021-07-24 11:48:19
Yes its in same page

Nope you cant render PHP once it is sent off from the server

Bhuvi100 2021-07-24 11:49:26
Goku 2021-07-24 10:55:10
may be it’s very silly question
but their is anyway we can convert laravel 5.8 project in laravel 8 project
if yes then how?
please reply

You can find upgrade guides for each version on docs

Bhuvi100 2021-07-24 11:50:09
Do it step by step like first adapt to changes of 6.x https://laravel.com/docs/6.x/upgrade
Bhuvi100 2021-07-24 11:52:30
Then 7.x then 8.x
Vikas Chandra B 2021-07-24 11:53:37
Bhuvi100 2021-07-24 11:49:01
Nope you cant render PHP once it is sent off from the server

Okay thank you

Bhuvi100 2021-07-24 11:54:28
Bhuvi100 2021-07-24 11:49:01
Nope you cant render PHP once it is sent off from the server

What you can do is
1) If you need something on the same page, use js
2) If you want to interact with the server, for like storing data in db, use post requests or ajax

Vikas Chandra B 2021-07-24 11:54:53
Bhuvi100 2021-07-24 11:54:28
What you can do is
1) If you need something on the same page, use js
2) If you want to interact with the server, for like storing data in db, use post requests or ajax

Thank you @Bhuvi100

Goku 2021-07-24 12:44:37
Bhuvi100 2021-07-24 11:49:26
You can find upgrade guides for each version on docs

thanks buddy

mehdi_shahabbasian 2021-07-24 13:17:26
laravel_discuss-89230.jpg

mehdi_shahabbasian 2021-07-24 13:17:26
laravel_discuss-89229.jpg

mehdi_shahabbasian 2021-07-24 13:17:45
Session after refresh return null !!!!!!

Why??

2021-07-24 14:38:31
laravel_discuss-89232.jpg
Help please 😢
2021-07-24 16:33:41
introduce me asadmau, i’m new to laravel, please guide me
2021-07-24 16:38:24
help mee please i want to display the data in the database which contains json data, and i want to display the data, but the result is null,
2021-07-24 16:38:51
laravel_discuss-89239.jpg
my coding controller
2021-07-24 16:39:22
laravel_discuss-89240.jpg
mee database
2021-07-24 16:40:32
laravel_discuss-89241.jpg
when the application is run the result is null
DesolatorMagno 2021-07-24 16:44:55
2021-07-24 16:38:51
my coding controller

But the model is also null or only the Json decode?

2021-07-24 16:47:19
DesolatorMagno 2021-07-24 16:44:55
But the model is also null or only the Json decode?

laravel_discuss-89244.jpg
the model is like this

DesolatorMagno 2021-07-24 16:48:51
But when you return the object, how does the nama show.
|