4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel 6.0 だけどLaravel-Adminを試したい

Last updated at Posted at 2019-09-04

Laravel-Adminのインストール拒否された

Laravel 6.0 でLaravel-Adminをインストールしようとすると失敗。

$ composer require encore/laravel-admin
Using version ^1.7 for encore/laravel-admin
./composer.json has been updated
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
    - Conclusion: don't install encore/laravel-admin v1.7.6
    - Conclusion: don't install encore/laravel-admin v1.7.5
    - Conclusion: don't install encore/laravel-admin v1.7.4
    - Conclusion: don't install encore/laravel-admin v1.7.3
    - Conclusion: don't install encore/laravel-admin v1.7.2
    - Conclusion: don't install encore/laravel-admin v1.7.1
    - Conclusion: remove laravel/framework v6.0.0
    - Installation request for encore/laravel-admin ^1.7 -> satisfiable by encore/laravel-admin[v1.7.0, v1.7.1, v1.7.2, v1.7.3, v1.7.4, v1.7.5, v1.7.6].
    - Conclusion: don't install laravel/framework v6.0.0
    - encore/laravel-admin v1.7.0 requires laravel/framework ~5.5 -> satisfiable by laravel/framework[5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev].
    - Can only install one of: laravel/framework[5.5.x-dev, v6.0.0].
    - Can only install one of: laravel/framework[5.6.x-dev, v6.0.0].
    - Can only install one of: laravel/framework[5.7.x-dev, v6.0.0].
    - Can only install one of: laravel/framework[5.8.x-dev, v6.0.0].
    - Installation request for laravel/framework v6.0.0 -> satisfiable by laravel/framework[v6.0.0].


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

対応

dev-masterを使う

composer.json
    "require": {
        "php": "^7.2",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravel/ui": "^1.0",
        "encore/laravel-admin": "dev-master" //追加
$ composer update

あとは公式ドキュメント通りに

$ php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
$ php artisan admin:install

Image from Gyazo

Image from Gyazo

Laravel 6.0 でも行けた!

追記

デフォルト画面は行けますが、他の画面がほとんど動きません... 当たり前

Issueが上がっているので、対応待ちが無難そうです。

追記2019/11/15

もうdev-masterつけなくても、普通にインストールして普通にある程度動くっぽいです。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?