Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 542 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 542 Bytes

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: