z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.15k stars 2.81k forks source link

laravel-admin2.0能采用bootstrap5吗? #5472

Open Longfei-Yan opened 2 years ago

Longfei-Yan commented 2 years ago

Dcat Admin很猛烈啊,感觉快快升级,不然被抢风头了

Rabinhoodwho commented 2 years ago

On Sat, Nov 20, 2564 BE at 06:41 晓飞 @.***> wrote:

Dcat Admin很猛烈啊,感觉快快升级,不然被抢风头了

在我身边没有ㄆ。这种情况的发展是人心所向柏特拉底厅厅长反思吿㮐阿诶。

-- Love

ieliwb commented 2 years ago

欣赏不来Dcat Admin,我感觉现在的很适合啊,Dcat Admin华而不实,配色看的很不舒服

masterwto commented 2 years ago

@Longfei-Yan Dcat admin更新很频繁,表明开发者投入时间较多。

open-admin-org commented 2 years ago

For those who interested i forked laravel-admin and turned into Open-admin. Removing all jQuery, implemented bootstrap 5, re-did the design and changed a lot of the code under the hood.

Checkout:

masterwto commented 2 years ago

@open-admin-org Thank you for your excellent work. Could you please tag a release, for example 1.8.17, as a replacement of laravel-admin? I want to know what change should I make if I did the replacement.

open-admin-org commented 2 years ago

I`m sorry, i probably should'nt have use the word fork. But i made so many changes it's actually not compatible as an actual fork anymore. I decided to start with a fresh git repo.

You can checkout https://github.com/open-admin-org/open-admin to see what i changed since the fork.

masterwto commented 2 years ago

@open-admin-org I'm working with encore/laravel-admin and found so many bugs that I descide to wite a package based on laravel-admin. I call it laravel-backend, which depends on laravel-admin, just extending some classes so that I can fix these bugs.

Laravel-admin is not well-tested. If you develop a new repo of open-admin, I strongly suggest you to improve the testing.

Dcad-admin is another repo to refer to.

open-admin-org commented 2 years ago

Thanks for the tip! Much appreciated, I`m still petty new the whole testing but i can see why this is needed. I already came across quite a few thing that where not working properly when going through the whole documentation. Fixed quite a lot bugs. But probably some still are around.

I`m aware of dcad admin. But my lack of the chinese language kept me away from this

Did you share the code of laravel-backend? I`m curious of what you added.

masterwto commented 2 years ago

@open-admin-org I added nothing but removed the RBAC feature. encore/laravel-admin is a little ugly, so I required spatie/laravel-permission.

The code looks like this: 1) composer.json

{
    "name" : "fantop/laravel-backend",
    "description" : "A wonderful administration interface for Laravel based on laravel-admin.",
    "keywords" : [
        "laravel",
        "admin",
        "backend"
    ],
    "require" : {
        "php" : ">=7.4.0",
        "open-admin-org/open-admin" : "dev-main",
        "laravel/framework": "^9.0",
        "spatie/laravel-permission": "^5.5"
    },
    "require-dev" : {
        "phpunit/phpunit" : "^9.5"
    },
    "autoload" : {
        "psr-4" : {
            "FanTop\\Backend\\" : "src/"
        }
    },
    "autoload-dev" : {
        "psr-4" : {
            "FanTop\\Backend\\Tests\\" : "tests/"
        }
    },
    "extra" : {
        "branch-alias" : {
            "dev-master" : "1.x-dev"
        },
        "laravel" : {
            "providers" : [
                "FanTop\\Backend\\BackendServiceProvider"
            ],
            "aliases" : {
                "Admin" : "FanTop\\Backend\\Facades\\Admin"
            },
            "dont-discover" : [
                "encore/laravel-admin"
            ]
        }
    },
    "config" : {
        "sort-packages" : true
    },
    "minimum-stability" : "dev",
    "prefer-stable" : true
}

I wrote FanTop\\Backend\\BackendServiceProvider extending Encore\Admin\AdminServiceProvider to change some commands、stubs and resource files; I changed Encore\Admin\Content and some other classes in order to override some methods.

This package is not published. With least code wo fix bugs, I don't have to struggle with entire laravel-admin repo.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Longfei-Yan commented 2 years ago

欣赏不Dcat Admin,我觉得现在的很合适啊,Dcat Admin 华而不实,萤幕看的很不喜来实

dcat/laravel-admin的配色是可以自己改变的,laravel-admin的风格很陈旧了, 开发出来的后台被嫌弃了

Longfei-Yan commented 2 years ago

@Longfei-Yan Dcat admin更新很频繁,表明开发者投入时间较多。

是的,作者很用心,很多功能开箱即用,很方便,他也是基于并借鉴了Laravel-admin,只希望两个脚手架都能很好的发展,行程各自的用户群体和优势,这样大家的选择也多

Longfei-Yan commented 2 years ago

Thanks, Pretty cool stuff