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

Error installation: simple setup not working... #171

Closed OMSmolina closed 6 years ago

OMSmolina commented 6 years ago

Describe the bug Simple setup not working..

"Class cms-language does not exist"

To Reproduce Steps to reproduce the behavior: 1: Install laravel 5.7.* 2: composer require grafite/cms (^3.2) 3: php artisan vendor:publish --provider="Grafite\Cms\GrafiteCmsProvider" 4: php artisan grafite:cms-setup 4.1: Please confirm that you have a database set and configured in your .env file. ( yes/no) [no]: yes

Screenshots image

Perafan18 commented 6 years ago

@oscarmolinadev Is really confusing but you must continue with the complex setup, add to the Kernel Route Middleware

        'admin' => \App\Http\Middleware\Admin::class,
        'cms' => \App\Http\Middleware\GrafiteCms::class,
        'cms-api' => \App\Http\Middleware\GrafiteCmsApi::class,
        'cms-language' => \App\Http\Middleware\GrafiteCmsLanguage::class,
        'cms-analytics' => \Grafite\Cms\Middleware\GrafiteCmsAnalytics::class,
mlantz commented 6 years ago

There must be something broken in the setup if its not adding the middleware to the Kernel automatically - I'll look at this

mlantz commented 6 years ago

Should be resolved now in the latest build