Class 'Kyslik\ColumnSortable\ColumnSortableServiceProvider' not found in Laravel
1
Solution :
The Kyslik-ColumnSortable error can occur if the package was not installed properly. Sometimes this error can also occur after running the composer update command.
It can be resolved by the following steps:
Step 1:
Reinstall the package for Kyslik-ColumnSortable by the following command:
composer require kyslik/column-sortable
Step 2:
Now you can check your composer.json file, that "kyslik/column-sortable": "^6.4" is included under require array. Version may vary. It will look like this:
"require": {
"kyslik/column-sortable": "^6.0"
}
Step 3:
Open the config/app.php if you are installing it for the first time else you can jump to Step 5.
Step 4:
Add the following line in providers array of config/app.php
config/app.php
Kyslik\ColumnSortable\ColumnSortableServiceProvider::class,
It should look like this:
'providers' => [
App\Providers\RouteServiceProvider::class,
/*
* Third Party Service Providers...
*/
Kyslik\ColumnSortable\ColumnSortableServiceProvider::class,
],
Now you can start/refresh your project to check that project is now working
Step 5:
If you are reinstalling it then you don't need to update the config/app.php file. You can skip steps 3 and 4. Now you can start/refresh your project to check that project is now working.