Crud: Error after composer update: Class 'CRUD' not found

Created on 13 Dec 2017  路  2Comments  路  Source: Laravel-Backpack/CRUD

What I did:

composer update

What happened:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 4 updates, 0 removals
  - Updating backpack/base (0.8.3 => 0.8.4) Downloading: 100%
  - Updating backpack/crud (3.3.1 => 3.3.2) Downloading: 100%
  - Updating backpack/permissionmanager (2.1.22 => 2.1.24) Downloading: 100%
  - Updating cviebrock/eloquent-sluggable (4.3.0 => 4.4.0) Downloading: 100%
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In settings.php line 18:

  Class 'CRUD' not found


Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Backpack, Laravel, PHP, DB version:

3.3, 5.5.23, 7.2, mariadb

Most helpful comment

Same to me, after update crud is loaded as last package, to solve this i put these on config/app.php

Backpack\Base\BaseServiceProvider::class,
Backpack\CRUD\CrudServiceProvider::class,

Between Package Service Providers Comment and Application Service Providers comment on providers array

'CRUD' => Backpack\CRUD\CrudServiceProvider::class,

at the end of aliases array

All 2 comments

Same to me, after update crud is loaded as last package, to solve this i put these on config/app.php

Backpack\Base\BaseServiceProvider::class,
Backpack\CRUD\CrudServiceProvider::class,

Between Package Service Providers Comment and Application Service Providers comment on providers array

'CRUD' => Backpack\CRUD\CrudServiceProvider::class,

at the end of aliases array

Solved, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgepires picture jorgepires  路  3Comments

mklahorst picture mklahorst  路  3Comments

deepaksp picture deepaksp  路  3Comments

sokvebolkol picture sokvebolkol  路  3Comments

alexgmin picture alexgmin  路  3Comments