ali-awwad / create-relation-on-resource

A Laravel Nova field.

Stars
3

Introduction

For now, this works for BelongsTo. Only "BelongsToWithCreate" is available, my plan in the future is to do "BlongsToMany" one.

Install

Run this command in your nova project:
composer require ali-awwad/create-relation-on-resource

Usage:

use AliAwwad\CreateRelationOnResource\BelongsToWithCreate;

public function fields(Request $request)
{
    return [
        BelongsToWithCreate::make('Language')->quickCreate(),
    ];
}

Thanks to: