daulat/taggy

该包最新版本(1.0.1)没有可用的许可证信息。

为laravel设计的优雅标签包

1.0.1 2018-04-04 07:03 UTC

This package is not auto-updated.

Last update: 2024-09-20 02:27:23 UTC


README

为laravel框架提供垃圾邮件保护的Daulat taggy

运行Composer命令安装daulat/taggy

composer require daulat/taggy

在config/app.php中注册服务提供者

Daulat\Taggy\Providers\TaggyServiceProvider::class,

在config/app.php中注册外观

'Spam' => Daulat\Taggy\Traits\Spam\Spam::class

在.env文件中添加API密钥

AKISMET_WEBSITE=your-website
AKISMET_SECRET=your-akismet-secret

akismet网站获取API密钥

更新config/services.php

 'akismet' =>[
   'website'=>env('AKISMET_WEBSITE'),
   'secret' =>env('AKISMET_SECRET'),
 ]

在config/spam.php中创建新文件

<?php

return [

'parameter_map'=>[
      'body' => 'comment_content',
      'author' => 'comment_author',
      'author_email' => 'comment_author_email',
]
  
];

接下来,运行

php artisan make:auth
php artisan migrate

并在tags表中添加一些示例标签。

现在您可以在以下示例中查看

Login or Register then
https://www.your-domain.com/topics