Laravel SEO Google Structured data
noud/laravel-seo-google-structured-data is a Laravel package for laravel seo google structured data.
It currently has 4 GitHub stars and 11 downloads on Packagist (latest version v1.0.0).
Install it with composer require noud/laravel-seo-google-structured-data.
Discover more Laravel packages by noud
or browse all Laravel packages to compare alternatives.
Last updated
Laravel SEO Google Structured data package.
Install the package by running this command in your terminal/cmd:
composer require noud/laravel-seo-google-structured-data
Now you can extend your models from Google Structured data
<?php
namespace App\Models;
use SEO\Google\Structured\data\Models\WebSite as GoogleWebSite;
class WebSiteGoogle extends GoogleWebSite
{}

Put this package directory beside your project directory.
In conmposer.json of the target project add
"require": {
"noud/laravel-seo-google-structured-data": "*"
},
"repositories": [
{
"type": "path",
"url": "../laravel-seo-google-structured-data"
}
]
In .env of the target project i set the database to an alternative database
DB_DATABASE=google-structured-data
#DB_DATABASE=seo
I migrate just this schema like so in the target project:
php artisan migrate --realpath --path=/var/www/laravel-seo-google-structured-data/src/database/migrations
In the target project set the path and namespace in config/models.php
'path' => app_path('Models-google-structured-data'),
'namespace' => 'SEO\Google\Structured\data\Models',
I generate the models from this schema like so in the target project:
php artisan code:models --schema=google-structured-data
Then copy everything from app/Models-google-structured-data to the package.