So you wanted to check status in products table or the booth?

|
A P 2021-12-13 04:45:31
ClassLamp 2021-12-13 04:39:42
Php artisan route:list

Route folder contain the api.php file in that videocontroller@list-video
So the calling url be like
https :// domain . com/list-video

ClassLamp 2021-12-13 04:46:31
If we can see Api on browser it’s not important to create this
ClassLamp 2021-12-13 04:47:01
A P 2021-12-13 04:45:31
Route folder contain the api.php file in that videocontroller@list-video
So the calling url be like
https :// domain . com/list-video

Send error console

A P 2021-12-13 04:48:03
ClassLamp 2021-12-13 04:47:01
Send error console

So how to see the generated json data

A P 2021-12-13 04:48:44
ClassLamp 2021-12-13 04:46:31
If we can see Api on browser it’s not important to create this

My code already contain the api . php file in the route folder

ClassLamp 2021-12-13 04:49:55
Use an rest Client please
A P 2021-12-13 04:51:06
ClassLamp 2021-12-13 04:49:55
Use an rest Client please

Ok

A P 2021-12-13 04:51:36
A P 2021-12-13 04:45:31
Route folder contain the api.php file in that videocontroller@list-video
So the calling url be like
https :// domain . com/list-video

My step of calling the url using rest API is right. By removing space

web design 2021-12-13 08:01:24
I installed this package https://github.com/alexusmai/laravel-file-manager

GitHub – alexusmai/laravel-file-manager: File manager for LaravelGitHub
File manager for Laravel. Contribute to alexusmai/laravel-file-manager development by creating an account on GitHub.
web design 2021-12-13 08:03:08
And add this code in my blade
web design 2021-12-13 08:03:23
laravel_discuss-102028.jpg

web design 2021-12-13 08:04:07
When I upload aan image , I see this
web design 2021-12-13 08:04:30
laravel_discuss-102030.jpg

Ramesh N 2021-12-13 09:41:18
laravel_discuss-102031.jpg
If I change sqlite showing database does not exist
Ramesh N 2021-12-13 09:41:53
If I do php artisan migrate throwing same error
Ramesh N 2021-12-13 09:42:15
laravel_discuss-102033.jpg

web design 2021-12-13 09:54:11
web design 2021-12-13 08:01:24
I installed this package https://github.com/alexusmai/laravel-file-manager

Answer my question

2021-12-13 10:14:27
Ramesh N 2021-12-13 09:42:15

This is a Mysql 8.0 error because they changed the auth method for security purposes
https://dev.mysql.com/doc/refman/8.0/en/authentication-plugins.html

2021-12-13 10:16:13
2021-12-13 10:14:27
This is a Mysql 8.0 error because they changed the auth method for security purposes
https://dev.mysql.com/doc/refman/8.0/en/authentication-plugins.html

It was answered here
https://github.com/laradock/laradock/issues/1390#issuecomment-523773909

Mysql. The server requested authentication method unknown to the client [caching_sha2_password] · Issue #1390 · laradock/laradockGitHub
Info: Docker version: 17.12.0-ce, build c97c6d6 Laradock commit: 13f55ef System info: Win System info disto/version: 10 Issue: New fresh laradock installation. All default settings. Driver is share…
itswinner 2021-12-13 15:22:05
Hi
I am trying to upload 10000 row but its given permission denied error
But if I am upload 6000 row its working is any one help to solve that error
web design 2021-12-13 15:31:20
laravel_discuss-102049.jpg
What is this error?
Siberfx 2021-12-13 15:31:47
its written in the image,
Siberfx 2021-12-13 15:31:58
“status” column not exist in the products table
web design 2021-12-13 15:32:14
Siberfx 2021-12-13 15:31:58
“status” column not exist in the products table

I have two tables booths and products

web design 2021-12-13 15:33:17
I want to show products when status = 1 in booths table
web design 2021-12-13 15:34:10
Siberfx 2021-12-13 15:31:47
its written in the image,

laravel_discuss-102054.jpg

Siberfx 2021-12-13 15:34:32
so you wanted to check status in products table or the booth ?
Siberfx 2021-12-13 15:35:43
Product::with([‘booth’ => function($b) { return $b->where(‘status’, 1); }])->latest()->get();
web design 2021-12-13 15:35:44
Siberfx 2021-12-13 15:34:32
so you wanted to check status in products table or the booth ?

No only booths table

Siberfx 2021-12-13 15:36:13
fix typo in this, and re-run the code
web design 2021-12-13 15:37:59
Siberfx 2021-12-13 15:35:43
Product::with([‘booth’ => function($b) { return $b->where(‘status’, 1); }])->latest()->get();

laravel_discuss-102059.jpg

web design 2021-12-13 15:40:01
Siberfx 2021-12-13 15:36:13
fix typo in this, and re-run the code

laravel_discuss-102060.jpg
booths table

Brunodebrito 2021-12-13 15:40:19
isso ai ta na model
web design 2021-12-13 15:40:35
Siberfx 2021-12-13 15:36:13
fix typo in this, and re-run the code

laravel_discuss-102062.jpg
products table

Brunodebrito 2021-12-13 15:41:01
uai vc não fez a FK
|