PHPackages                             huantime/laravel-cms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. huantime/laravel-cms

AbandonedLibrary[Admin Panels](/categories/admin)

huantime/laravel-cms
====================

Simple Bootstrap Laravel CMS for any EXISTING or new Laravel website. Only add few database tables with prefix, not effect your existing database tables. Support both Laravel 5 &amp; Laravel 6. Amila Laravel CMS

1.3.0(6y ago)011MITPHPPHP &gt;=7.0.0

Since Aug 16Pushed 6y agoCompare

[ Source](https://github.com/xiaoqing2016/Laravel-CMS)[ Packagist](https://packagist.org/packages/huantime/laravel-cms)[ Docs](https://github.com/AlexStack/Laravel-CMS/)[ RSS](/packages/huantime-laravel-cms/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (6)Versions (28)Used By (0)

Forked from
======================================================

[](#forked-from-httpsgithubcomalexstacklaravel-cms)

Amila Laravel CMS
=================

[](#amila-laravel-cms)

[![image](docs/images/min/travis.svg)](https://github.com/AlexStack/Laravel-CMS/releases)[![Laravel CMS](docs/images/min/mit.svg)](https://www.laravelcms.tech/ "Laravel CMS 2020")[![image](docs/images/min/styleci.svg)](https://github.com/AlexStack/Laravel-CMS/releases)[![Latest Stable Version](https://camo.githubusercontent.com/7f8b6fdbe1ceee453a8e641a59a2762ba2513631b7d0b843a067d1f0844bf1b9/68747470733a2f2f706f7365722e707567782e6f72672f616c6578737461636b2f6c61726176656c2d636d732f762f737461626c65)](https://github.com/AlexStack/Laravel-CMS/releases)

- Free, open source Simple Bootstrap Laravel CMS for any EXISTING Laravel 5.x or new Laravel 6 website.
- Only add a few database tables with prefix, not effect your existing database tables.
- You can easy custom the database table names, the page URL path(route) and the template(theme)
- Website is ready after install. Easy to use, simple enough but flexible.
- Basic Laravel 5.x /Laravel 6.x syntax and blade template, no need to learn a new "language"

How to install &amp; uninstall (Support Laravel 5.x &amp; Laravel 6.x)
----------------------------------------------------------------------

[](#how-to-install--uninstall-support-laravel-5x--laravel-6x)

```
// Make sure you already configured the database in the .env
// Go to the laravel project folder and install it via composer
// Initialize the CMS (You can set up database table prefix and locale here)

composer require alexstack/laravel-cms && php artisan laravelcms

// Now you can access the cms frontend site: http://yourdomain/cms-home

// Access the backend with the FIRST USER of your site: http://yourdomain/cmsadmin

// Uninstall the CMS
php artisan laravelcms --action=uninstall
```

Demo &amp; Documents
--------------------

[](#demo--documents)

- [Laravel CMS frontend demo &amp; documents](https://www.laravelcms.tech "Laravel CMS") 📙

Screenshot of the output of install command
-------------------------------------------

[](#screenshot-of-the-output-of-install-command)

[![image](docs/images/min/artisan-install-command-min.png)](docs/images/min/artisan-install-command-min.png)

Screenshot of the output of uninstall command
---------------------------------------------

[](#screenshot-of-the-output-of-uninstall-command)

[![image](docs/images/min/artisan-uninstall-command-min.png)](docs/images/min/artisan-uninstall-command-min.png)

Screenshot of the admin panel
-----------------------------

[](#screenshot-of-the-admin-panel)

[![image](docs/images/min/all-pages-min.png)](docs/images/min/all-pages-min.png)[![image](docs/images/min/settings-template-min.png)](docs/images/min/settings-template-min.png)[![image](docs/images/min/create-new-page-min.png)](docs/images/min/create-new-page-min.png)

Set locale language to **cn** instead of **en**
-----------------------------------------------

[](#set-locale-language-to-cn-instead-of-en)

[![cn_image](docs/images/min/settings-global-cn-min.png)](docs/images/min/settings-global-cn-min.png)

Error "Route \[login\] not defined" while access the backend /cmsadmin/
-----------------------------------------------------------------------

[](#error-route-login-not-defined-while-access-the-backend-cmsadmin)

- This means you did not install Laravel Auth
- Can be fixed by the below commands:

```
// Laravel 5.x
php artisan make:auth && php artisan migrate
// Laravel 6.x
composer require laravel/ui && php artisan ui vue --auth
```

How to log into the backend /cmsadmin/ ?
----------------------------------------

[](#how-to-log-into-the-backend-cmsadmin-)

- Amila CMS use your existing Laravel user system
- You need to login with the FIRST USER of your site (user\_id = 1)
- You can add more admin users by change the admin\_ary in config/laravel-cms.php
- If you don't have any existing user, then register a new one via

Why the uploaded image can not display (404 error)
--------------------------------------------------

[](#why-the-uploaded-image-can-not-display-404-error)

- You can fix it by create a storage public link
- **php artisan storage:link**
- eg. The public/storage should link to ../storage/app/public, if the public/storage is a real folder, you should remove/rename it and run "php artisan storage:link" to set up the link.

Custom the cms route in config/laravel-cms.php
----------------------------------------------

[](#custom-the-cms-route-in-configlaravel-cmsphp)

- **homepage\_route**: This is the frontend homepage. By default it is /cms-home, you can change it to / then remove the existing / route in the routes/web.php

```
# Change homepage_route to /  in config/laravel-cms.php
'homepage_route'    => env('LARAVEL_CMS_HOMEPAGE_ROUTE', '/'),

# Remove the existing / route in the routes/web.php

// Route::get('/', function () {
//     return view('welcome');
// });
```

- **page\_route\_prefix**: This is the frontend page prefix. By default it is /cms-, it will match path like /cms-\*. You can change it to a folder like /xxx/ or anything like xxx-, eg. Page- Article-

```
'page_route_prefix' => env('LARAVEL_CMS_PAGE_PREFIX', '/Article-'),
```

- **admin\_route**: This is the backend admin page route, By default it is /cmsadmin

```
'admin_route'       => env('LARAVEL_CMS_BACKEND_ROUTE', '/admin2019'),
```

- **After change the route, you will need to run below commands:**

```
php artisan laravelcms --action=clear
```

Display an image with different size in the frontend Laravel .blade.php template file
-------------------------------------------------------------------------------------

[](#display-an-image-with-different-size-in-the-frontend-laravel-bladephp-template-file)

- .blade.php Code examples:

```
@if ( isset($file_data->main_image) )

@endif
```

- You can get an image with any width and height. or use the original image.
- Available image variables: $file\_data-&gt;main\_image, $file\_data-&gt;main\_banner, $file\_data-&gt;extra\_image, $file\_data-&gt;extra\_image\_2
- The CMS will resize the image at the first time, then will directly use it afterwards.

How to change the CSS &amp; JS assets of the frontend?
------------------------------------------------------

[](#how-to-change-the-css--js-assets-of-the-frontend)

- The asset files located at public/laravel-cms/&lt;theme\_name&gt;, eg. public/laravel-cms/frontend/css
- Example code to load css or js:

```

...

```

- The default template file will load css and js asset with last\_modify\_time parameter to avoid cache from browser

How to set up a different template theme from the default?
----------------------------------------------------------

[](#how-to-set-up-a-different-template-theme-from-the-default)

- Copy the default theme folder /resources/views/laravel-cms/**frontend** to /resources/views/laravel-cms/**new\_theme**
- Change the frontend\_dir in the settings page to **new\_theme**
- Default value in config/laravel-cms.php

```
    'template' => [
        'frontend_dir'      => 'frontend',
        'backend_dir'       => 'backend',
        'backend_language'  => 'en',
        'frontend_language' => 'en',
    ]
```

- run **php artisan config:cache** to load new config file
- Change template settings for the pages in the backend
- The css/js asset files will locate at public/laravel-cms/**new\_theme**

Set default slug format and suffix for page SEO URL in config/laravel-cms.php
-----------------------------------------------------------------------------

[](#set-default-slug-format-and-suffix-for-page-seo-url-in-configlaravel-cmsphp)

- You can change it in the settings page
- 'slug\_format' can be from\_title, id, pinyin
- 'slug\_suffix' can be anything you want, empty means no suffix

```
    'slug_format'   => 'from_title',
    'slug_suffix'   => '.html',
    'slug_separate' => '-',
```

How to set up a brand new Laravel 6.x website &amp; install our CMS
-------------------------------------------------------------------

[](#how-to-set-up-a-brand-new-laravel-6x-website--install-our-cms)

- It's good for a local test

```
// Install Laravel 6.x & the CMS package
composer create-project --prefer-dist laravel/laravel cms && cd cms && composer require alexstack/laravel-cms

// Then you need to change the database settings in the .env, after that initialize CMS
cd cms & vi .env
php artisan laravelcms

// Or initialize the CMS with silent mode
php artisan laravelcms --action=initialize --locale=en --table_prefix=cms_  --silent=yes

// Enable auth system for Laravel 6.x
composer require laravel/ui && php artisan ui vue --auth && php artisan migrate

// Config the document root to point to the cms/public then you can access the backend
// Tips: You will need register a new user, the first user will be the admin user
```

How to upgrade the CMS?
-----------------------

[](#how-to-upgrade-the-cms)

- Run below command in your Laravel project folder
- It will ask whether you want to copy the new view,asset and language files to your project

```
composer require alexstack/laravel-cms && php artisan laravelcms --action=upgrade
```

- Upgrade screenshot

[![image](docs/images/min/laravel-cms-upgrade-min.png)](docs/images/min/laravel-cms-upgrade-min.png)

License
-------

[](#license)

- The Amila Laravel CMS is open-source software licensed under the MIT license.

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 99.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

26

Last Release

2403d ago

Major Versions

0.22.0 → 1.0.02019-09-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17427186?v=4)[xiaoqing2016](/maintainers/xiaoqing2016)[@xiaoqing2016](https://github.com/xiaoqing2016)

---

Top Contributors

[![AlexStack](https://avatars.githubusercontent.com/u/33879126?v=4)](https://github.com/AlexStack "AlexStack (328 commits)")[![xiaoqing2016](https://avatars.githubusercontent.com/u/17427186?v=4)](https://github.com/xiaoqing2016 "xiaoqing2016 (2 commits)")

---

Tags

laravellaravel 6cmslaravel bloglaravel6headless cmsLaravel CMSPHP CMSLaravelCMSamila laravel cmsLaravel WordpressAmila CMSexisting laravel project

### Embed Badge

![Health badge](/badges/huantime-laravel-cms/health.svg)

```
[![Health](https://phpackages.com/badges/huantime-laravel-cms/health.svg)](https://phpackages.com/packages/huantime-laravel-cms)
```

###  Alternatives

[alexstack/laravel-cms

Simple Bootstrap Laravel CMS. Can integrate to any existing Laravel project. Only add few database tables with prefix, not effect your existing database tables. Support Laravel 8.x &amp; 7.x &amp; Laravel 6.x &amp; Laravel 5.x - Amila Laravel CMS

1084.3k5](/packages/alexstack-laravel-cms)[lara-zeus/sky

Lara-zeus sky is simple CMS for your website. It includes posts, pages, tags, and categories.

20726.5k3](/packages/lara-zeus-sky)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[weblabormx/laravel-front

Front is a administration panel for Laravel. It allows you to create CRUD easily in minutes. It allows to fully customize any part of the code.

1111.1k](/packages/weblabormx-laravel-front)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
