thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.77k stars 2.67k forks source link

Voyager bread view returns JSON #5698

Open Stelikas opened 1 year ago

Stelikas commented 1 year ago

Laravel version

8.75

PHP version

8.1.5

Voyager version

1.5.2

Database

MySQL 5.7.24

Description

I'm using Laravel World Package for world data, this package consists of Countries, States and Cities, going through Voyager i created a bread for cities, locally when redirecting to the view to add extra cities the view displays just fine, in production the view returns the JSON of the cities.

Steps to reproduce

  1. Use Laravel World Package
  2. Create a bread for any model (tried with Cities and States)
  3. Browse view

Expected behavior

Display default Voyager view with data instead of the JSON

Screenshots

6

Additional context

No response

syed-reza98 commented 1 year ago

Hello @Stelikas Have you set up .htaccess to redirect all requests to /public directory (for index.php) in production?