PHPackages                             travelience/seo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. travelience/seo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

travelience/seo
===============

SEO for laravel projects

1101[1 PRs](https://github.com/xpromx/laravel-seo/pulls)PHP

Since Aug 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/xpromx/laravel-seo)[ Packagist](https://packagist.org/packages/travelience/seo)[ RSS](/packages/travelience-seo/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Installation
============

[](#installation)

### Service Provider

[](#service-provider)

Add the service provider in config/app.php

```
Travelience\Seo\SeoServiceProvider::class,

```

### Alias

[](#alias)

Add the SEO alias in config/app.php

```
'SEO' => Travelience\Seo\Facades\Seo::class,`

```

### Config Files

[](#config-files)

In order to edit the default configuration for this package you may execute:

```
php artisan vendor:publish

```

### Translation Files for routes

[](#translation-files-for-routes)

If you support multi-language you can use the lang folder creating a file seo.php for each language to automatically translate the SEO meta for each language.

The key is the route name for example in routes/web.php

```
Route::get('/'  	             , ['as' => 'home', 'uses' => 'Web\HomeController@index']);
Route::get('/about'            , ['as' => 'about', 'uses' => 'Web\AboutController@index']);
Route::get('/company/reviews'  , ['as' => 'company.reviews', 'uses' => 'Web\CompanyController@reviews']);
```

The translation file for the previous routes will be:

```
