LaravelDaily / Laravel-Vue-First-CRUD

Simple demo project for Laravel 5.5 and Vue.js with one CRUD operation.
257 stars 156 forks source link

view component dont load #16

Closed jjmontalban closed 4 years ago

jjmontalban commented 4 years ago

Hi

I haver inserted one company directly in database. And route show company, but with any view!

https://prnt.sc/rcxd09

jjmontalban commented 4 years ago

Any idea?

Daniyal-Javani commented 4 years ago

Can you send me the error message that you got?

jjmontalban commented 4 years ago

Any error. Just dont show view

https://prnt.sc/rcxscw

jjmontalban commented 4 years ago

The route is http://localhost/laravue/public/api/v1/companies

Only show a json with companies. But I dont know if css or any file is not linked. Dont appear any error

Daniyal-Javani commented 4 years ago

Look, there is no error in your screenshots, this is output of the api and that's fine. You must check the Vue routes, it must be like the following link http://localhost/laravue/public/companies

jjmontalban commented 4 years ago

Tahnks for your help. But I dont know why, the view dont show in these route:

https://prnt.sc/rcy2ac

Only show

https://prnt.sc/rcy2p2

Daniyal-Javani commented 4 years ago

Sorry my mistake, it's here /admin/companies#/

probably this is yours http://localhost/laravue/public/admin/companies#/

BTW, that's because of the prefix in route group 'prefix' => 'admin'

jjmontalban commented 4 years ago

Sorry my mistake, it's here /admin/companies#/

probably this is yours http://localhost/laravue/public/admin/companies#/

BTW, that's because of the prefix in route group 'prefix' => 'admin'

Great! Thanks a lot!