mikofb/mikdoc

一个多用户Laravel文件和文件夹管理包。

v1.2 2019-09-27 03:24 UTC

This package is auto-updated.

Last update: 2024-09-16 03:33:55 UTC


README

Mikdoc是一个基于Laravel认证系统的包。通常,这意味着您必须运行以下命令

php artisan make:auth

现在根据您的Lavarel版本,这可能会改变。请参阅文档以获取更多详细信息。
如果一切看起来正常,请按照以下步骤安装包。

安装

步骤 01:使用Composer下载包

要开始使用Mikdoc,请使用Composer将包添加到项目的依赖项中。

composer require mikofb/mikdoc

步骤 02:迁移

此步骤将在数据库中创建一个documents表,因此请确保目前没有。

php artisan migrate

步骤 03:发布资源和配置文件

在这里,您需要发布mikdoc.php配置文件和所有不同的资源。

php artisan vendor:publish --provider="Mikofb\Mikdoc\MikdocServiceProvider"

步骤 04:查看结果

最后,通过添加/documents作为前缀访问您的域名URL。

注意:此前缀可以更改为您想要的任何内容,请参阅config/mikdoc.php以获取更多详细信息!

Mikdoc包已设置为自动发现,但如果您遇到一些未知路由错误,您可以这样修复它们。
您只需在config/app.php中注册服务提供者和别名。

'providers' => [
		 Mikofb\Mikdoc\MikdocServiceProvider::class,
],

/*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */
    
'aliases' => [
		'Mikdoc' => Mikofb\Mikdoc\Facades\Mikdoc::class, 
],

语言

目前只提供两种语言

  • 英语(en)
  • 法语(fr)

凭证

此包中的所有视图都是由Creative Tim提供的免费模板。

许可

Mikdoc是开源软件,许可协议为MIT。有关更多信息,请参阅许可文件

用❤️制作