PHP code example of novius / laravel-nova-redirect-manager

1. Go to this page and download the library: Download novius/laravel-nova-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-nova-redirect-manager example snippets



return [
    //...

    /*
     * This is the class responsible for providing the URLs which must be redirected.
     * The only ger\Redirector\DatabaseRedirector::class,
];

return [

    /*
     * This is the model used by the database redirector
     */
    'redirector_model' => \Novius\LaravelNovaRedirectManager\Models\Redirect::class,

    /*
     * This is the nova resource used to manage Redirect items
     */
    'redirect_nova_resource' => \Novius\LaravelNovaRedirectManager\Resources\Redirect::class,

    /*
     * This max length rule for Redirect item
     */
    'redirect_url_max_length' => 1000,
];
ssh
php artisan migrate

php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=config

php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=lang