After update Laravel to 5.8.* Voyager is completely broken
Suddenly BREADS are broken, searchable is
Undefined variable
Call to a member function getTranslatedAttribute() on null
appears every time...
I am thinking about completely uninstall Voyager for good.
How do I uninstall it? Any hints, please?
To be honest never upgrade an existing project without preparation.
To uninstall you need:
composer remove tcg/voyager
Also remove the routes from your routes/web.php
Voyager entangles itself in the Laravel application so simply doing
composer remove tcg/voyager
may not be enough
composer.json
"repositories": {
"hooks": {
"type": "composer",
"url": "https://larapack.io"
}
}
Also delete the hooks
directory on the root of your project
routes/web.php
Route::group(['prefix' => 'admin'], function () {
Voyager::routes();
});
File: config/app.php comment or delete following lines.
/*
* Package Service Providers...
*/
TCG\Voyager\VoyagerServiceProvider::class,
Auth\User
instead of Voyager's userFrom this
class User extends \TCG\Voyager\Models\User
To this
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
config/voyager.php
database/migrations
2016_01_01_000000_create_pages_table.php
2016_01_01_000000_create_posts_table.php
2016_02_15_204651_create_categories_table.php
2017_04_11_000000_alter_post_nullable_fields_table.php
database/seeds
CategoriesTableSeeder.php
DataRowsTableSeeder.php
DataTypesTableSeeder.php
MenuItemsTableSeeder.php
MenusTableSeeder.php
PagesTableSeeder.php
PermissionRoleTableSeeder.php
PermissionsTableSeeder.php
PostsTableSeeder.php
RolesTableSeeder.php
SettingsTableSeeder.php
TranslationsTableSeeder.php
UsersTableSeeder.php
VoyagerDatabaseSeeder.php
VoyagerDummyDatabaseSeeder.php
public/vendor/tcg
folder to remove static assetsIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With