LaravelPackages.net
Acme Inc.
Toggle sidebar
gabrieliuga/laravel-nova-field-seo-metabox

A Laravel Nova field.

15
0
v1.0.2
About gabrieliuga/laravel-nova-field-seo-metabox

gabrieliuga/laravel-nova-field-seo-metabox is a Laravel package for a laravel nova field.. It currently has 0 GitHub stars and 15 downloads on Packagist (latest version v1.0.2). Install it with composer require gabrieliuga/laravel-nova-field-seo-metabox. Discover more Laravel packages by gabrieliuga or browse all Laravel packages to compare alternatives.

Last updated

Laravel nova field seo metabox

Quality Score StyleCI Latest Version on Packagist Total Downloads

Allow view and edit seo metabox data related to a model

This package requires:

  • https://github.com/gabrieliuga/laravel-seo-meta-box - follow the instructions and use guide here before installing this package

Installation

You can install the package via composer:

composer require gabrieliuga/laravel-nova-field-seo-metabox

Usage

In your nova resource add the following lines

<?php

namespace App\Nova

use Giuga\LaravelNovaSeoMetaboxField\SeoMetabox;

class Example extends Resource
{
    ...
   /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        return [
            ID::make()->sortable(),
            new SeoMetabox('Seo Metabox', $this->model()),
        ];
    }
}

Nova view:

Laravel nova panel view

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Star History Chart