thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.77k stars 2.67k forks source link

uninstall process #874

Closed andreas83 closed 5 years ago

andreas83 commented 7 years ago

i would love to use your voyager package on a ongoing project. but when i tried to install it, i got the error, that the post table already exists.

second trouble was the uninstall process, i saw quite a lot migrations and seed files, would love to see a uninstall task / process...

thinkdj commented 7 years ago

+1 Need an uninstall.

sepehr09 commented 6 years ago

how we can uninstall voyager ?

ShahidKhosa commented 6 years ago

Hare are the steps to remove voyager. I also installed the voyager front-end.

  1. composer remove pvtl/voyager-frontend

  2. composer remove tcg/voyager

  3. Remove these routes from web.php file Route::group(['prefix' => 'admin'], function () { Voyager::routes(); });

  4. Remove the parent class from app/User.php file and extend it from "Authenticatable". Below is the example how the user.php file look like.

use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable

mtslzr commented 6 years ago

I believe you'll also wanna remove the hook repo from composer.json that gets added with Voyager:

        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        }
tnylea commented 5 years ago

This will be implemented in Version 2.0 👍 Adding it to the 2.0 planning project: https://github.com/the-control-group/voyager/projects/6

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.