xn / laravel-admin
laravel admin
Requires
- php: >=7.0.0
- chillerlan/php-qrcode: ^4.3
- doctrine/dbal: >=3
- laravel/framework: >=5.5
- mews/captcha: ^3.2
- pragmarx/google2fa-laravel: ^2.0
- spatie/laravel-translation-loader: ^2.7
- symfony/dom-crawler: ~3.1|~4.0|~5.0
- xn/checkboxtree: >=1.0.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- intervention/image: ~2.3
- laravel/browser-kit-testing: ^6.0
- laravel/laravel: >=5.5
- spatie/phpunit-watcher: ^1.22.0
Suggests
- intervention/image: Required to handling and manipulation upload images (~2.3).
- spatie/eloquent-sortable: Required to built orderable gird.
- dev-master
- 2.0.x-dev
- v1.0.60
- v1.0.59
- v1.0.58
- v1.0.57
- v1.0.56
- v1.0.55
- v1.0.54
- v1.0.53
- v1.0.52
- v1.0.51
- v1.0.50
- v1.0.49
- v1.0.48
- v1.0.47
- v1.0.46
- v1.0.45
- v1.0.44
- v1.0.43
- v1.0.42
- v1.0.41
- v1.0.40
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- 1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.0
- dev-sso
This package is auto-updated.
Last update: 2024-12-21 03:36:59 UTC
README
⛵laravel-admin
is administrative interface builder for laravel which can help you build CRUD backends just with few lines of code.
Documentation | 中文文档 | Demo | Demo source code | Extensions
</a>
Inspired by SleepingOwlAdmin and rapyd-laravel.
Requirements
- PHP >= 7.0.0
- Laravel >= 5.5.0
- Fileinfo PHP Extension
Installation
This package requires PHP 7+ and Laravel 5.5, for old versions please refer to 1.4
First, install laravel 5.5, and make sure that the database connection settings are correct.
composer require xn/laravel-admin
Then run these commands to publish assets and config:
php artisan vendor:publish --provider="Xn\Admin\AdminServiceProvider"
php artisan vendor:publish --tag=laravel-admin-checkboxtree
After run command you can find config file in config/admin.php
, in this file you can change the install directory,db connection or table names.
At last run following command to finish install.
php artisan admin:install
Open http://localhost/admin/
in browser,use username admin
and password admin
to login.
Configurations
The file config/admin.php
contains an array of configurations, you can find the default configurations in there.
Session Configuration
app/config/session.php
- change table from 'sessions' to 'admin_sessions'
# 重整按鈕定時器
'refresh_timer' => [
'roles' => [
'administrator'
],
'timers' => [
10,
20,
30,
60
]
],
Form使用欄位table時檔案、圖片上傳在修改存檔會消失的解決方式
public function setItemsAttribute($value)
{
$oldValue = $this->attributes['items']??[];
$updValue = array_replace_recursive($oldValue, $value);
$newValue = array_intersect_key($updValue, $value);
$this->attributes['items'] = array_values($newValue);
}
Login登入採用database時env配置
SESSION_DRIVER=database.session
filesystems.php配置
'admin' => [
'driver' => 'local',
'root' => public_path('uploads'),
'visibility' => 'public',
'url' => env('APP_URL').'/uploads',
],
Auth Method
- None
- Captcha 安装 https://github.com/mewebstudio/captcha
- OTP 安装 https://github.com/antonioribeiro/google2fa-laravel
Language Translate
https://github.com/spatie/laravel-translation-loader
Extensions
Extension | Description | laravel-admin |
---|---|---|
helpers | Several tools to help you in development | ~1.5 |
media-manager | Provides a web interface to manage local files | ~1.5 |
api-tester | Help you to test the local laravel APIs | ~1.5 |
scheduling | Scheduling task manager for laravel-admin | ~1.5 |
redis-manager | Redis manager for laravel-admin | ~1.5 |
backup | An admin interface for managing backups | ~1.5 |
log-viewer | Log viewer for laravel | ~1.5 |
config | Config manager for laravel-admin | ~1.5 |
reporter | Provides a developer-friendly web interface to view the exception | ~1.5 |
wangEditor | A rich text editor based on wangeditor | ~1.6 |
summernote | A rich text editor based on summernote | ~1.6 |
china-distpicker | 一个基于distpicker的中国省市区选择器 | ~1.6 |
simplemde | A markdown editor based on simplemde | ~1.6 |
phpinfo | Integrate the phpinfo page into laravel-admin | ~1.6 |
php-editor <br/> python-editor <br/> js-editor<br/> css-editor<br/> clike-editor | Several programing language editor extensions based on code-mirror | ~1.6 |
star-rating | Star Rating extension for laravel-admin | ~1.6 |
json-editor | JSON Editor for Laravel-admin | ~1.6 |
grid-lightbox | Turn your grid into a lightbox & gallery | ~1.6 |
daterangepicker | Integrates daterangepicker into laravel-admin | ~1.6 |
material-ui | Material-UI extension for laravel-admin | ~1.6 |
sparkline | Integrates jQuery sparkline into laravel-admin | ~1.6 |
chartjs | Use Chartjs in laravel-admin | ~1.6 |
echarts | Use Echarts in laravel-admin | ~1.6 |
simditor | Integrates simditor full-rich editor into laravel-admin | ~1.6 |
cropper | A simple jQuery image cropping plugin. | ~1.6 |
composer-viewer | A web interface of composer packages in laravel. | ~1.6 |
data-table | Advanced table widget for laravel-admin | ~1.6 |
watermark | Text watermark for laravel-admin | ~1.6 |
google-authenticator | Google authenticator | ~1.6 |
Contributors
This project exists thanks to all the people who contribute. [Contribute]. ## Backers Thank you to all our backers! 🙏 [Become a backer] ## Sponsors Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Other
laravel-admin
based on following plugins or services:
- Laravel
- AdminLTE
- Datetimepicker
- font-awesome
- moment
- Google map
- Tencent map
- bootstrap-fileinput
- jquery-pjax
- Nestable
- toastr
- X-editable
- bootstrap-number-input
- fontawesome-iconpicker
- sweetalert2
License
laravel-admin
is licensed under The MIT License (MIT).