gennadiy-bilyk/articles

博客文章包

dev-master 2017-08-04 11:17 UTC

This package is not auto-updated.

Last update: 2024-09-26 06:34:40 UTC


README

#安装

包需要安装其他包

 "laravelrus/sleepingowl": "4.*@dev",
 
 "baum/baum": "~1.1"

#安装包 在 composer.json 中添加 require 部分 "gennadiy-bilyk/articles":"*@dev" 然后执行 composer update

 Добавляем сервис провайдеры в config/app
      GennadiyBilyk\Articles\ArticlesProvider::class,
	  
 Выполняем 
 
  php artisan vendor:publish --provider="GennadiyBilyk\Articles\ArticlesProvider" --force
 php artisan migrate

#配置包
在 app/Admin/navigation.php 中添加菜单项
AdminSection::addMenuPage(\App\Models\Article\Articlescategory::class), AdminSection::addMenuPage(\App\Models\Article\Article::class), AdminSection::addMenuPage(\App\Models\Article\ArticleAuthor::class),

  Добавляем модель в app\Providers\AdminSectionsServiceProvider.php свойство $sections         
        
          \App\Models\Article\Article::class=>'App\Http\Sections\Articles',
          \App\Models\Article\ArticleAuthor::class=>'App\Http\Sections\ArticleAuthors',
          \App\Models\Article\Articlescategory::class=>'App\Http\Sections\Articlescategories',
  

  
  Добавляем js файл из репозитория https://github.com/GennadiyBilyk/jsTranslite в public/js/translite.js
  
  
  все готово!