Download the PHP package huantime/laravel-cms without Composer
On this page you can find all versions of the php package huantime/laravel-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download huantime/laravel-cms
More information about huantime/laravel-cms
Files in huantime/laravel-cms
Package laravel-cms
Short Description 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 & Laravel 6. Amila Laravel CMS
License MIT
Homepage https://github.com/AlexStack/Laravel-CMS/
Informations about the package laravel-cms
Forked from https://github.com/AlexStack/Laravel-CMS
Amila Laravel CMS
- 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 & uninstall (Support Laravel 5.x & Laravel 6.x)
Demo & Documents
Screenshot of the output of install command
Screenshot of the output of uninstall command
Screenshot of the admin panel
Set locale language to cn instead of en
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:
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 http://your-domain/register
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
-
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
-
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-
-
admin_route: This is the backend admin page route, By default it is /cmsadmin
- After change the route, you will need to run below commands:
Display an image with different size in the frontend Laravel .blade.php template file
-
.blade.php Code examples:
- You can get an image with any width and height. or use the original image.
- Available image variables: $file_data->main_image, $file_data->main_banner, $file_data->extra_image, $file_data->extra_image_2
- The CMS will resize the image at the first time, then will directly use it afterwards.
How to change the CSS & JS assets of the frontend?
- The asset files located at public/laravel-cms/
, 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?
- 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
- 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
- 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
How to set up a brand new Laravel 6.x website & install our CMS
- It's good for a local test
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
- Upgrade screenshot
License
- The Amila Laravel CMS is open-source software licensed under the MIT license.
All versions of laravel-cms with dependencies
ext-gd Version *
ext-json Version *
laravel/framework Version >=5.5
intervention/image Version ^2.4
intervention/imagecache Version ^2.3
laravelcollective/html Version >=5.5
overtrue/pinyin Version ^4.0
alexstack/google-recaptcha-to-any-form Version ^1.4