ali-awwad/create-relation-on-resource

A Laravel Nova field.

Installs: 32 118

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 3

Open Issues: 4

Language:Vue

pkg:composer/ali-awwad/create-relation-on-resource

0.0.1 2019-12-12 19:58 UTC

This package is auto-updated.

Last update: 2025-09-17 15:43:31 UTC


README

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: