thedevdojo / voyager

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

adding voyager to existing laravel application #2976

Closed robertlight closed 6 years ago

robertlight commented 6 years ago

I have a Twilio based IVR (interactive voice response) system built using Laravel. I would like to keep all my existing code and add an admin dashboard to the system.

Can I just go to my existing laravel root directory and enter:

"composer require tcg/voyager"

and have it use my existing database?

is it really that easy?

cyberlightdev commented 6 years ago

As near as I can tell voyager does not officially support 5.6 yet, so likely, no. :/

robertlight commented 6 years ago

php artisan --version
Laravel Framework version 5.1.41 (LTS)

I'm running 5.1.41 it seems

robertlight commented 6 years ago

I gave it a whirl... here's what I got:

composer require tcg/voyager

Using version ^1.0 for tcg/voyager ./composer.json has been updated

php artisan clear-compiled Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

I have php7 available on my hosting account... I set .htaccess in public/ to:

AddHandler application/x-httpd-php70 .php

and phpInfo() shows php7.0 as the working version.

Any ideas how I fix this?

MrCrayon commented 6 years ago

Are you using cPanel? https://github.com/composer/composer/issues/6918

fletch3555 commented 6 years ago

Voyager does not support laravel 5.1.* (which also isn't latest by the way). We currently support 5.4 and 5.5.

In order to update to 5.5, you would have to install php 7.0 (per the Composer error message). I see you told apache to use php7 with the public/.htaccess file. Unfortunately, composer doesn't use that, so it won't make a difference. You'll have to research how to tell composer what version to use, but that's beyond the scope of this project.

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.