voyager-inc/quote-replace
Composer 安装命令:
composer require voyager-inc/quote-replace
包简介
A package to replace quote in string
README 文档
README
Installation
composer require voyager-inc/quote-replace
- Publish provider
php artisan vendor:publish --provider="VoyagerInc\QuoteReplace\ServiceProvider"
- Install example code if you want
php artisan quote-replace:install-example
and now the package will generate Controller, Route, Request and View
QuoteReplaceController.php-> ControllerQuoteReplaceSubmitRequest.php-> Requestquote_replace.php-> RoutequoteReplace.blade.php-> View
Usage
-
We can enable/disable of package with config
enabledinquote_replace.phpfile with value istrueto enable orfalseto disable. -
For example:
-
In
web.phpadd this line below to loadquote_replaceroute of package for test
require __DIR__ . '/quote_replace.php';
quote_replace.phpfile route with content:
Route::get('/quote-replace/test', [\App\Http\Controllers\QuoteReplaceController::class, 'index'])->name('quoteReplace.index'); Route::post('/quote-replace/submit', [\App\Http\Controllers\QuoteReplaceController::class, 'submit'])->name('quoteReplace.submit');
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-22