ionutradis / extslider
外部滑块服务提取器
1.1.x-dev
2020-02-26 14:05 UTC
This package is auto-updated.
Last update: 2024-09-27 00:13:18 UTC
README
-
安装
composer require ionutradis/extslider:1.1.x-dev -
在你的config/app.php中加载提供者
ionutradis\extslider\ExtSliderServiceProvider::class, -
发布配置文件
php artisan vendor:publish --provider="ionutradis\extslider\ExtSliderServiceProvider" --tag=config -
在config/extslider.php中设置XML格式的馈送URL
-
运行命令
php artisan migrate
用法
-
导入/更新滑块
new ExtSliderController('slug'); //string type updates local slider by slider group or new ExtSliderController(1); // int type fetches and stores local slider by external slider id or new ExtSliderController(true); // bool type tells the script to fetch all the sliders or new ExtSliderController(1, true); // by passing 'true' as second parameter, the script will also update the slider(s) -
查看
@include('extslider::html', ['slug' => 'homepage'])