coreui / coreui-free-laravel-admin-template

CoreUI Free Laravel Bootstrap Admin Template
https://coreui.io/laravel/
MIT License
621 stars 358 forks source link

Can I use CoreUI Laravel admin template pro with Laravel 6? #45

Open joelamltc opened 4 years ago

joelamltc commented 4 years ago

As the topic mentioned, I would like to use the Laravel 6 LTS version as my project requirement. Is it possible with pro version?

marchershey commented 4 years ago

Good lord. Version 6?

But I have yet to test this, but it should work because it's just blade templates and a little js.

If it doesn't you can always implement CoreUI into Laravel yourself.

joelamltc commented 4 years ago

Alright, thx. I will give it a try to move those template files and assets into Laravel 6.

marchershey commented 4 years ago

If you have any issues, please report back.

I'm kind of curious. lol

joelamltc commented 3 years ago

I was managed to use coreui-pro-laravel-admin-template-v1.0.6 as a start and downgraded to Laravel 6. What I have done were just update composer.json to Laravel 6 requirements. And ran phpunit, all tests are passed.

    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "require": {
        "php": "^7.2",
        "fideloper/proxy": "^4.2",
        "firebase/php-jwt": "^5.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^7.0",
        "laravel/framework": "^6.18.35",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^1.0",
        "phpseclib/phpseclib": "^2.0",
        "spatie/laravel-medialibrary": "^7.19.0",
        "spatie/laravel-permission": "^3.8"
    },
    "require-dev": {
        "facade/ignition": "^1.4",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^8.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}
joelamltc commented 3 years ago

Worth mentioned. I noticed the code is not complied to PSR coding standard. Some pages style are gone. e.g. password reset