voyager-inc / quote-replace
A package to replace quote in string
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/voyager-inc/quote-replace
Requires
- php: ^8.2
- illuminate/support: ^11.0
Requires (Dev)
- orchestra/testbench: ^4|^5|^6|^7|^8|^9
This package is auto-updated.
Last update: 2025-10-23 07:19:25 UTC
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');