physio/mylittlecms

此包已被废弃,不再维护。未建议替代包。

使用 laravel backpack 设计的小型 CMS

v1.1 2017-07-29 09:44 UTC

This package is not auto-updated.

Last update: 2021-03-09 01:36:52 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

此处应放置您的描述。尽量限制在一两段之内,并可能提及您支持的 PSRs 以避免与用户和贡献者产生混淆。

结构

如果以下任何一项适用于您的项目,那么目录结构应遵循行业最佳实践,并命名为以下名称。

bin/        
config/
src/
tests/
vendor/

安装

通过 Composer

$ composer require physio/mylittlecms

$ php artisan vendor:publish --provider="Backpack\Base\BaseServiceProvider" 
#publishes configs, langs, views and AdminLTE files
$ php artisan vendor:publish --provider="Prologue\Alerts\AlertsServiceProvider"# publish config for notifications - prologue/alerts

php artisan elfinder:publish #published elfinder assets
php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="public" #publish CRUD assets
php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="lang" #publish CRUD lang files 
php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="config" #publish CRUD and custom elfinder config files
php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="elfinder" #publish custom elFinder views


$ php artisan migrate #generates users table (using Laravel's default migrations)

在类名之前使用 Backpack\Base\app\Notifications\RsetPasswordNotification 作为 ResetPasswordNotification;

作为 User 类中的方法

  /**
   * Send the password reset notification.
   *
   * @param  string  $token
   * @return void
   */
  public function sendPasswordResetNotification($token)
  {
      $this->notify(new ResetPasswordNotification($token));
  }

使用方法

$skeleton = new physio\mylittlecms();
echo $skeleton->echoPhrase('Hello, League!');

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

测试

$ composer test

贡献

请参阅 CONTRIBUTINGCONDUCT 以获取详细信息。

安全

如果您发现任何与安全相关的问题,请通过电子邮件 ilphysio@gmail.com 而不是使用问题跟踪器。

致谢

许可

MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件