PHP code example of backendprogramer / laravel-redirect-panel
1. Go to this page and download the library: Download backendprogramer/laravel-redirect-panel 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/ */
backendprogramer / laravel-redirect-panel example snippets
return [
/* -----------------------------------------------------------------
| htaccess file path
| -----------------------------------------------------------------
| Addressing should be done from the path of the public folder like "../../folder/.htaccess"
*/
'htaccess' => '.htaccess',
/* -----------------------------------------------------------------
| Locale
| -----------------------------------------------------------------
| Supported locales :
| 'auto', 'en', 'fa'
*/
'locale' => 'auto',
/* -----------------------------------------------------------------
| Direction
| -----------------------------------------------------------------
| Supported directions :
| 'ltr','rtl'
*/
'direction' => 'ltr',
/* -----------------------------------------------------------------
| redirects per page
| -----------------------------------------------------------------
| This defines how many redirects are displayed per page.
*/
'per-page' => 10,
/* -----------------------------------------------------------------
| Colors
| -----------------------------------------------------------------
| You can change color of these classes :
| btn-primary, btn-danger, btn-success, btn-secondary, text-danger
*/
'colors' => [
// 'fg-color' => [
// 'btn-primary' => '',
// 'btn-danger' => '',
// 'btn-success' => '',
// 'btn-secondary' => '',
// 'text-danger' => '',
// ],
// 'bg-color' => [
// 'btn-primary' => '',
// 'btn-danger' => '',
// 'btn-success' => '',
// 'btn-secondary' => '',
// ],
// 'border-color' => [
// 'btn-primary' => '',
// 'btn-danger' => '',
// 'btn-success' => '',
// 'btn-secondary' => '',
// ],
],
];
Route::redirectPanel('laravel-redirect-panel');
bash
php artisan vendor:publish --tag="laravel-redirect-panel-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="laravel-redirect-panel-config"
bash
php artisan vendor:publish --tag="laravel-redirect-panel-views"
bash
php artisan vendor:publish --tag="laravel-redirect-panel-lang"
bash
php artisan redirect-panel:publish