That package require this package
https://spatie.be/docs/laravel-tags/v2/installation-and-setup
And there you have to create tags and taggables tables.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I get ```call to a member function map() on null`` when i use this spatie tag field package. I'm using Laravel 7.x version and Nova 3.x. Is neccessary to create table for tags?
namespace App\Nova;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Benjacho\BelongsToManyField\BelongsToManyField;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Number;
use Laravel\Nova\Fields\Date;
use Spatie\TagsField\Tags;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
public function fields(Request $request)
{
return [
ID::make()->sortable(),
BelongsTo::make('Brand', 'brand', 'App\Nova\Brand'),
Text::make('Name', 'name')->rules('required'),
Textarea::make('Statement', 'statement')->rules('required'),
Tags::make('Search Tags', 'search_tags');
Number::make('Priority', 'priority')->min(1)->max(10)->rules('required'),
Select::make('Time frame', 'time_frame')->options([
'Next Month' => 'Next Month',
'Next 3 Months' => 'Next 3 Months',
'Next 6 Months' => 'Next 6 Months',
'Next 12 Months' => 'Next 12 Months',
])->rules('required'),
Select::make('Successive meassure', 'success_measure')->options([
'New Unique Visitors' => 'New Unique Visitors',
'Beverages Sold' => 'Beverages Sold',
'New Unique Customers' => 'New Unique Customers',
])->rules('required'),
BelongsToManyField::make('Objective Owner', 'users', 'App\Nova\User')->relationModel(\App\Objectives::class)->rules('required'),
Date::make('Review date', 'review_date')->rules('required'),
Select::make('Status', 'status')->options([
'Proposed' => 'Proposed',
'Active' => 'Active',
'Achieved' => 'Achieved'
])->rules('required'),
Please or to participate in this conversation.