PHP code example of knash94 / seo
1. Go to this page and download the library: Download knash94/seo 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/ */
knash94 / seo example snippets
composer
'Knash94\Seo\SeoServiceProvider'
$redirect = $this->reportNotFound($exception);
if ($redirect && $redirect instanceof RedirectResponse) {
return $redirect;
}
use LogsMissingPages;
return [
'routing' => [
'prefix' => 'admin/seo-tools',
'namespace' => 'Knash94\Seo\Http\Controllers',
'middleware' => ['auth']
],
'views' => [
'template' => 'layout.admin',
'section' => 'content',
'index' => 'seo-tools::bootstrap3.index',
'errors' => [
'edit' => 'seo-tools::bootstrap3.errors.edit',
'view' => 'seo-tools::bootstrap3.errors.view'
],
'redirects' => [
'edit' => 'seo-tools::bootstrap3.redirects.edit',
'delete' => 'seo-tools::bootstrap3.redirects.delete'
]
],
// Filters what URLs to not record using regex
'filters' => [
'/(\.png)|(\.jpg)|(\.gif)/',
'/wp\-login\.php/'
]
];
php artisan vendor:publish --provider=Knash94\Seo\SeoServiceProvider
php artisan migrate