helori/laravel-seo


License: MIT

Language: HTML


laravel-crudui

SEO tools to insert meta and structured-data in laravel projects

Installation and setup

composer require helori/laravel-seo

Configure your application:

// config/app.php
'providers' => [
    ...
    Helori\LaravelSeo\SeoServiceProvider::class,
];

Publish the config file:

php artisan vendor:publish --provider="Helori\LaravelSeo\SeoServiceProvider" --tag="config"

Publish the views if you wish to overwite the defaults:

php artisan vendor:publish --provider="Helori\LaravelSeo\SeoServiceProvider" --tag="views"

How to use

Add all information about your website in config/laravel-seo. In your controller, add these lines when calling your views :

$seo = \Helori\LaravelSeo\SeoTools::get();
return view('your_view', ['seo' => $seo]);

In your layout, include theses views as needed:

<head>
    @include('laravel-seo::meta')
    @include('laravel-seo::meta-facebook')
    @include('laravel-seo::meta-twitter')
</head>
<body>
    @include('laravel-seo::local-business')
    @include('laravel-seo::organization')
    @include('laravel-seo::website')
    @include('laravel-seo::breadcrumb')
</body>

Project Statistics

Sourcerank 4
Repository Size 21.5 KB
Stars 8
Forks 3
Watchers 4
Open issues 1
Dependencies 1
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Helori

Packages Referencing this Repo

helori/laravel-seo
SEO tools to insert meta and structured-data in laravel projects
Latest release - Published - 8 stars

Something wrong with this page? Make a suggestion

Last synced: 2016-05-20 15:03:09 UTC

Login to resync this repository