GrafiteInc / CMS

Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
https://cms.grafite.ca
MIT License
495 stars 104 forks source link

Routes not working after simple installation #139

Closed TheDutchDev closed 6 years ago

TheDutchDev commented 6 years ago

Hi,

I've been trying to get this CMS working in a default laravel application, but the I cant seem to get the routes to work.

I've followed the steps on the getting started page(https://docs.grafite.ca/cms/) and the steps in the console(npm install, dev run and adding the import to scss file).

I've reinstalled both laravel and Grafite 4 times now but it just doesnt work. I also tried installing it via the complex setup, which broke even more things..

When I go to the website, the homepage seems to be working fine, but as soon as I click on Login or any other tab, it takes me to the "AAH" "Where am I?" page.

How do I solve this?

Thanks!

mlantz commented 6 years ago

Please provide your AppRoutesProvider.php

TheDutchDev commented 6 years ago

I'm assuming you mean the App\Providers\RouteServiceProvider.php?

`namespace App\Providers;

use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider { /**

mlantz commented 6 years ago

Yeah sorry, I suspect the cms.php routes file is the standard, what does your web.php routes file look like, did you alter anything outside of the simple setup? Or is the issue happening right after you run the php artisan grafite:cms command?

TheDutchDev commented 6 years ago

Yeah it happens right after a fresh installation.

I'm running it on XAMPP and laravel 5.6

mlantz commented 6 years ago

I'll have to try some fresh builds tonight to see if I can replicate it.

sleepless commented 6 years ago

Had the same problem and solved it. Thought to open an issue and saw that there already is one. Well, this is the problem and solution: https://stackoverflow.com/questions/51227231/laravel-reflectionexception-class-does-not-exist/51227377#51227377 (at least for complex setup)

I'd fix it but this has cost me enough time already. I have to move on with the project.

mlantz commented 6 years ago

After reading through the comments on StackOverflow, I'll make some adjustments to help improve this, thanks @sleepless