All Projects → Naoray → blueprint-nova-addon

Naoray / blueprint-nova-addon

Licence: MIT license
A Blueprint addon which generates Nova resources

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to blueprint-nova-addon

custom-relationship-field
Emulate HasMany relationship without having a real relationship set between resources
Stars: ✭ 18 (-70.49%)
Mutual labels:  nova
nova-links
Add links to your nova sidebar
Stars: ✭ 32 (-47.54%)
Mutual labels:  nova
nova-sluggable
Slug field for Laravel Nova
Stars: ✭ 40 (-34.43%)
Mutual labels:  nova
chappe
🧑‍💻 Developer Docs builder. Write guides in Markdown and references in API Blueprint. Comes with a built-in search engine.
Stars: ✭ 132 (+116.39%)
Mutual labels:  blueprint
05 TestingGrounds
A Hunger-Games inspired FPS with large outdoor terrains. Advanced AI, basic networking, pickups, skeletal meshes, checkpoints and more. (ref: TG_URC) http://gdev.tv/urcgithub
Stars: ✭ 121 (+98.36%)
Mutual labels:  blueprint
nova-system-resources
Display the system usage in Laravel-Nova
Stars: ✭ 30 (-50.82%)
Mutual labels:  nova
simple-flask-s3-uploader
Simple and easy to use Flask app to upload files to Amazon S3. Based on Python, Flask, and using Boto3. Securely storing your AWS credentials as environment variables. Quick AWS S3 Flask uploader example.
Stars: ✭ 24 (-60.66%)
Mutual labels:  blueprint
DlgSystem
Dialogue Plugin System for Unreal Engine | 🪞 Mirror of https://bit.ly/DlgSource
Stars: ✭ 136 (+122.95%)
Mutual labels:  blueprint
nova-froala-editor
Froala editor input for laravel nova
Stars: ✭ 18 (-70.49%)
Mutual labels:  nova
adonisjs-laravel-mix
An AdonisJs fullstack application blueprint with Laravel Mix
Stars: ✭ 17 (-72.13%)
Mutual labels:  blueprint
RyansUE4Helpers
Extremely helpful helper functions for developing Blueprint and C++ projects in Unreal Engine.
Stars: ✭ 55 (-9.84%)
Mutual labels:  blueprint
nova-opening-hours-field
Laravel Nova custom field for https://github.com/spatie/opening-hours
Stars: ✭ 33 (-45.9%)
Mutual labels:  nova
CrashlyticsKit
The most powerful, yet lightest weight crash reporting solution for Unreal Engine 4
Stars: ✭ 25 (-59.02%)
Mutual labels:  blueprint
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-54.1%)
Mutual labels:  nova
stomt-unreal-plugin
Collect feedback in-game/in-app with STOMT for Unreal Engine.
Stars: ✭ 23 (-62.3%)
Mutual labels:  blueprint
nova-unlayer-field
🦜 Drag’n’drop email builder for Laravel Nova that uses Adds a Laravel Nova field for Unlayer service under the hood.
Stars: ✭ 27 (-55.74%)
Mutual labels:  nova
generator-jhipster-svelte
Generate Svelte powered JHipster web applications
Stars: ✭ 44 (-27.87%)
Mutual labels:  blueprint
BlueprintWebSocket
Documentation for BlueprintWebSocket available on the Unreal Engine Marketplace.
Stars: ✭ 13 (-78.69%)
Mutual labels:  blueprint
nova-tabs
Another Laravel Nova Tabs Package
Stars: ✭ 60 (-1.64%)
Mutual labels:  nova
LocalSimulation
This plugin allows you to essentially create PxScene or Physic Scenes by placing an Actor, and adding other Static Mesh Components and soon Skeletal Mesh components within this space. Adding Constraints, and Forces will work as expected, but now with the additional layer of abstraction so that simulation can be anchored to a transform.
Stars: ✭ 42 (-31.15%)
Mutual labels:  blueprint

Blueprint Nova Addon

Build Status Total Downloads

📣 Shoutout to Jason McCreary whose Blueprint package lays the groundwork for this small addon. Thank you Jason 🙌

Installing this addon will allow you to generate your Nova resources with the php artisan blueprint:build command.

Installation

You can install this package and Blueprint via composer:

composer require --dev naoray/blueprint-nova-addon

⚠️ You need to have laravel nova installed in order for the resource generation to take place!

Usage

Refer to Blueprint's Basic Usage to get started. Afterwards you can run the blueprint:build command to generate Nova resources automatically. To get an idea of how easy it is you can use the example draft.yaml file below.

# draft.yaml
models:
  Post:
    author_id: id foreign:users
    title: string:400
    content: longtext
    published_at: nullable timestamp
    relationships:
      HasMany: Comment

  Comment:
    post_id: id foreign
    content: longtext
    published_at: nullable timestamp

From these 13 lines of YAML, this addon will generate 2 Nova resources which are pre-filled with 14 fields.

// App/Nova/Comment.php
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        Textarea::make('Content')
            ->rules('required', 'string'),

        DateTime::make('Published at'),

        BelongsTo::make('Post'),

        DateTime::make('Created at'),
        DateTime::make('Updated at'),
    ];
}

// App/Nova/Post.php
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        Text::make('Title')
            ->rules('required', 'string', 'max:400'),

        Textarea::make('Content')
            ->rules('required', 'string'),

        DateTime::make('Published at'),

        BelongsTo::make('Author', 'author', User::class),

        HasMany::make('Comments'),

        DateTime::make('Created at'),
        DateTime::make('Updated at'),
    ];
}

Configuration

You may publish the configuration with the following command:

php artisan vendor:publish --tag=nova_blueprint

Timestamp fields

To disable the generation of timestamp fields for all Nova resources set this option to false.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].