Skip to content

Laravel Nova Custom Field enables you to create a resource from BelongsTo relation

Notifications You must be signed in to change notification settings

ali-awwad/create-relation-on-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Laravel Nova Custom Field enables you to create a resource from BelongsTo relation

Resources

Stars

Watchers

Forks

Packages

No packages published