万花筒 / 全能手
基于 Laravel 的 CMS,由 Kaleidoscope Srl 开发
6.0.10
2021-09-20 11:43 UTC
Requires
- php: ^7.3|^8.0
- ext-curl: *
- ext-json: *
- barryvdh/laravel-debugbar: ^3.1.5
- doctrine/dbal: ~2.3
- intervention/image: ^2.4.2
- laravel/framework: 8.*
- laravel/ui: ^2.1
- spatie/laravel-sitemap: ^5.7
- stripe/stripe-php: ^7.37
- dev-master
- v7.x-dev
- 6.0.10
- 6.0.9
- 5.0.27
- 5.0.26
- 5.0.25
- 5.0.22
- 5.0.21
- 5.0.20
- 5.0.19
- 5.0.18
- 5.0.17
- 5.0.11
- 5.0.10
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.1
- 4.0.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-agapefactotum
This package is auto-updated.
Last update: 2024-09-29 04:25:52 UTC
README
Factotum 是一个基于 Laravel 的开源 CMS,遵循简单规则:我们喜欢遵循 KISSing DRY PIE。
Laravel 设置
- 安装一个新的 Laravel 应用程序,并 配置 .env 文件 以使用数据库密钥。
laravel new [project name]
- 将您的 Web 服务器文档根设置为 public 文件夹
注意!! 确保以下文件夹可由 Web 服务器写入:bootstrap/cache 和 storage
- 设置 Laravel 应用程序密钥
php artisan key:generate
Factotum 设置
- 使用 composer 安装 factotum
composer require kaleidoscope/factotum
- 然后在 config/app.php 中添加以下服务提供者
'providers' => [ ... Intervention\Image\ImageServiceProvider::class, Barryvdh\Debugbar\ServiceProvider::class, Kaleidoscope\Factotum\FactotumServiceProvider::class, ... ]
然后注册 Facade 类别名
'aliases' => [ ... 'Image' => Intervention\Image\Facades\Image::class, 'PrintMenu' => Kaleidoscope\Factotum\Helpers\PrintMenuHelper::class, 'PrintCategories' => Kaleidoscope\Factotum\Helpers\PrintCategoriesHelper::class, ... ]
- 启动安装
php artisan factotum:install
享受 Factotum
您可以在以下位置找到完整文档:Factotum 文档。
从 Factotum 1.3 更新到 Factotum 4
-
将 composer.json 中的版本从 1.3 更新为 4.0.0
-
运行以下命令
composer update
php artisan vendor:publish --tag=passport-migrations
php artisan migrate
php artisan passport:install
- 在 vendor/kaleidoscope/factotum/FactotumServiceProvider.php 中注释掉以下行
// __DIR__ . '/public/assets' => public_path('assets'), // __DIR__ . '/resources/views/frontend' => resource_path( 'views/frontend' )
然后运行
php artisan vendor:publish --tag=factotum
-
将 "content_categories" 表重命名为 "category_content"。
-
从 "roles" 表中删除 "manage_categories"。
从 Factotum 1.3 迁移到 Factotum 4 的内容迁移
-
备份您的当前数据库
-
为新的 Factotum 创建一个新的数据库,并将迁移到该数据库
-
为新的数据库配置 .env 变量
DB_CONNECTION=mysql
DB_HOST=[new database host]
DB_PORT=[new database port]
DB_DATABASE=[new database name]
DB_USERNAME=[new database username]
DB_PASSWORD=[new database password]
- 为旧的数据库配置 .env 变量
OLD_DB_CONNECTION=old_fm
DB_HOST=[previous database host]
DB_PORT=[previous database port]
DB_DATABASE=[previous database name]
DB_USERNAME=[previous database username]
DB_PASSWORD=[previous database password]
- 要迁移现有内容类型和内容字段,请运行
factotum:migrate-content-type-fields {slug of the Content Type}
- 要迁移现有媒体,请运行
factotum:migrate-media
- 要迁移现有内容,请运行
factotum:migrate-content-type-fields {slug of the Content Type}
贡献
感谢您考虑为 Factotum 贡献!
安全漏洞
如果您在 Factotum 中发现安全漏洞,请发送电子邮件至 Filippo Matteo Riggio,邮箱地址为 filippo@kaleidoscope.it。所有安全漏洞都将得到及时处理。
许可证
Factotum CMS 是开源软件,根据 MIT 许可证 发布。