NOW, Only Support baidu.
- Support actions:
- Sogou
- 360
- PHP 7.0 +
- Laravel 5.5 +
You can install the package using composer
$ composer require composer require momosc/push-urls
Then add the service provider to config/app.php
Momosc\LaravelPushUrls\PushUrlsServiceProvider::class
Publish the migrations file:
$ php artisan vendor:publish --provider='Momosc\LaravelPushUrls\PushUrlsServiceProvider::class' --tag="migrations"
As optional if you want to modify the default configuration, you can publish the configuration file:
$ php artisan vendor:publish --provider='Momosc\LaravelPushUrls\PushUrlsServiceProvider::class' --tag="config"
And create tables:
$ php artisan migrate
use Momosc\LaravelPushUrls\PushUrlsServiceProvider;
class News
{
use BaiduTrait;
public function index()
{
$urls = ['http://www.***.com'];
$this->pushUrls($urls);
}
}
MIT