How create dynamic filter with vue js and laravel for products?

|
DesolatorMagno 2019-08-14 23:52:25
https://laravel.com/docs/5.8/pagination
Documenation don’t bite

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
DesolatorMagno 2019-08-14 23:53:31
laravel_discuss-10989.jpg
did you tried doing it like it is in the documentantion?
zack6849 2019-08-14 23:57:13
Erfanhosseinpoor 2019-08-14 23:48:37
Why not paginate products on show.blade ?

Because you should be doing as much business logic as possible anywhere but the view

WebDeveloperFromHM 2019-08-14 23:58:17
how create dynamic filter with vue js and laravel for products?
R_IT_Geek 2019-08-15 05:53:34
skys215 2019-08-14 13:10:11
Still not working?

no.
I don’t know what to do.

isnopitag 2019-08-15 06:01:41
R_IT_Geek 2019-08-15 05:53:34
no.
I don’t know what to do.

Please tell me about your environment, its a Linux, but what distro? Debian , Ubuntu…?

R_IT_Geek 2019-08-15 06:03:41
isnopitag 2019-08-15 06:01:41
Please tell me about your environment, its a Linux, but what distro? Debian , Ubuntu…?

shared host

R_IT_Geek 2019-08-15 06:04:14
isnopitag 2019-08-15 06:01:41
Please tell me about your environment, its a Linux, but what distro? Debian , Ubuntu…?

cpanel

isnopitag 2019-08-15 06:07:31
R_IT_Geek 2019-08-15 06:04:14
cpanel

Ok, I get the idea why are you having this troubles, first check at the documentation of your server providers if they support the list of requirements for Laravel 5.7, for example in GoDaddy CPanel only accept laravel 5.1 so that will be a good start to resolve troubles

R_IT_Geek 2019-08-15 06:09:54
isnopitag 2019-08-15 06:07:31
Ok, I get the idea why are you having this troubles, first check at the documentation of your server providers if they support the list of requirements for Laravel 5.7, for example in GoDaddy CPanel only accept laravel 5.1 so that will be a good start to resolve troubles

I was working correctly before I moved the new code locally to the host.

isnopitag 2019-08-15 06:10:47
R_IT_Geek 2019-08-15 06:04:14
cpanel

In my particular case I use Digital Ocean’s Droplets, its a service with a virtual machine server that you configure from zero, the cost of the basic server it’s $5 American Dollars at month and you can have other projects there

skys215 2019-08-15 06:12:00
have you upload all folders?
can you show us a screenshot of the file list under public_html/ ?
R_IT_Geek 2019-08-15 06:31:06
skys215 2019-08-15 06:12:00
have you upload all folders?
can you show us a screenshot of the file list under public_html/ ?

List of files I uploaded

Http folder
app/Models folder
views folder
routes folder
and vendor/laravel/framework/src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php

List of public folder contents
.git folder
.idea folder
admin folder
app folder
bootstrap folder
database folder
lib folder
node_modules folder
public folder
resources folder
routes folder
storage folder
tests folder
vendor folder

R_IT_Geek 2019-08-15 06:31:36
R_IT_Geek 2019-08-15 06:31:06
List of files I uploaded

Http folder
app/Models folder
views folder
routes folder
and vendor/laravel/framework/src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php

List of public folder contents
.git folder
.idea folder
admin folder
app folder
bootstrap folder
database folder
lib folder
node_modules folder
public folder
resources folder
routes folder
storage folder
tests folder
vendor folder

laravel_discuss-11002.jpg
and this files …

R_IT_Geek 2019-08-15 06:33:52
laravel_discuss-11003.jpg

R_IT_Geek 2019-08-15 06:38:16
R_IT_Geek 2019-08-15 06:31:06
List of files I uploaded

Http folder
app/Models folder
views folder
routes folder
and vendor/laravel/framework/src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php

List of public folder contents
.git folder
.idea folder
admin folder
app folder
bootstrap folder
database folder
lib folder
node_modules folder
public folder
resources folder
routes folder
storage folder
tests folder
vendor folder

permission all folders is 755

skys215 2019-08-15 06:44:47
I assume that bootstrap folder and storage folder should have 777permision
skys215 2019-08-15 06:45:09
Seems the folder structure is normal
isnopitag 2019-08-15 06:45:09
skys215 2019-08-15 06:44:47
I assume that bootstrap folder and storage folder should have 777permision

Yes Storage and Routes

isnopitag 2019-08-15 06:45:24
isnopitag 2019-08-15 06:45:09
Yes Storage and Routes

And Public

skys215 2019-08-15 06:45:29
isnopitag 2019-08-15 06:45:09
Yes Storage and Routes

Storage and bootstrap, not routes

skys215 2019-08-15 06:45:39
Public shouldn’t be 777
R_IT_Geek 2019-08-15 06:46:49
skys215 2019-08-15 06:45:39
Public shouldn’t be 777

@User4Today

I’m setting it up now.

R_IT_Geek 2019-08-15 06:48:21
R_IT_Geek 2019-08-15 06:46:49
@User4Today

I’m setting it up now.

it did not work. 😭

R_IT_Geek 2019-08-15 06:49:03
Storage & bootstrap set to 777
skys215 2019-08-15 06:50:13
R_IT_Geek 2019-08-15 06:49:03
Storage & bootstrap set to 777

Still not working?

R_IT_Geek 2019-08-15 06:50:54
skys215 2019-08-15 06:50:13
Still not working?

no

isnopitag 2019-08-15 06:51:23
R_IT_Geek 2019-08-15 06:49:03
Storage & bootstrap set to 777

At Storage/log and look at laravel.log

isnopitag 2019-08-15 06:52:03
R_IT_Geek 2019-08-15 06:50:54
no

And can you give to us and Screenshot of the php info?

R_IT_Geek 2019-08-15 06:56:05
isnopitag 2019-08-15 06:52:03
And can you give to us and Screenshot of the php info?

laravel_discuss-11019.jpg

gabrielmoraesp 2019-08-15 06:56:42
ops
R_IT_Geek 2019-08-15 06:59:52
isnopitag 2019-08-15 06:52:03
And can you give to us and Screenshot of the php info?

Is this picture good for the phpinfo?

skys215 2019-08-15 07:01:46
“Unable to create configured logger. Using emergency logger. ”
Seems like a permission problem?
skys215 2019-08-15 07:02:09
Is storage folder structure same as in your local machine
R_IT_Geek 2019-08-15 07:03:19
skys215 2019-08-15 07:02:09
Is storage folder structure same as in your local machine

yes,

Upload storage folder from local to host, right?

skys215 2019-08-15 07:03:30
Yes
R_IT_Geek 2019-08-15 07:03:42
OK.
skys215 2019-08-15 07:05:46
I have no clue
R_IT_Geek 2019-08-15 07:13:46
skys215 2019-08-15 07:03:30
Yes

it did not work!

isnopitag 2019-08-15 07:16:26
Delete this file, don’t worry it creates a new, next put 777 permission to vendor directory
isnopitag 2019-08-15 07:17:13
Try and if still not working send the laravel.log file
R_IT_Geek 2019-08-15 07:19:59
isnopitag 2019-08-15 07:17:13
Try and if still not working send the laravel.log file

it did not work!

skys215 2019-08-15 07:24:11
Directory not found exception
skys215 2019-08-15 07:25:04
Check how did it get that directory
R_IT_Geek 2019-08-15 07:26:17
skys215 2019-08-15 07:25:04
Check how did it get that directory

How to check?

skys215 2019-08-15 07:26:40
Dig into the code
isnopitag 2019-08-15 07:27:33
R_IT_Geek 2019-08-15 07:19:59
it did not work!

This file it’s not working, so its a bad practice but set all to 777 and try it and send the log file

R_IT_Geek 2019-08-15 07:28:46
skys215 2019-08-15 07:26:40
Dig into the code

What is a Dig?

skys215 2019-08-15 07:29:55
I mean…read the laravel code, add dd to dump variables to debug the code
isnopitag 2019-08-15 07:31:33
Do you have a ssh connection to the server?
|