LaravelPackages.net
Acme Inc.
Toggle sidebar
ali-awwad/create-relation-on-resource

A Laravel Nova field.

34.009
7
0.0.1
About ali-awwad/create-relation-on-resource

ali-awwad/create-relation-on-resource is a Laravel package for a laravel nova field.. It currently has 7 GitHub stars and 34.009 downloads on Packagist (latest version 0.0.1). Install it with composer require ali-awwad/create-relation-on-resource. Discover more Laravel packages by ali-awwad or browse all Laravel packages to compare alternatives.

Last updated

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:

Star History Chart