PHP code example of novius / laravel-filament-redirect-manager
1. Go to this page and download the library: Download novius/laravel-filament-redirect-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
novius / laravel-filament-redirect-manager example snippets
// bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
$middleware->append([
\Spatie\MissingPageRedirector\RedirectsMissingPages::class,
]);
})
use Novius\LaravelFilamentRedirectManager\LaravelFilamentRedirectManager;
class AdminFilamentPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
// ...
LaravelFilamentRedirectManager::make(),
// ...
])
// ...
;
}
}
bash
php artisan vendor:publish --provider="Novius\LaravelFilamentRedirectManager\RedirectManagerServiceProvider" --tag="lang"