Coder Social home page Coder Social logo

tomatophp / tomato-plugins Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 345 KB

Plugins installer for Tomato PHP framework, and plugin generator

Home Page: https://docs.tomatophp.com/plugins/get-started

License: MIT License

PHP 37.49% Blade 6.24% Dart 56.27%
laravel php plugins splade tomatophp

tomato-plugins's Introduction

Screenshot

Tomato Plugins

Plugins installer for Tomato PHP framework

Installation

composer require tomatophp/tomato-plugins

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see SECURITY for more information about security.

Credits

License

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

tomato-plugins's People

Contributors

3x1io avatar

Stargazers

 avatar

Watchers

 avatar

tomato-plugins's Issues

The select doesn't display the values from the table.

I was trying to create a simple application and generate a CRUD for two migrations, 'States' and 'Cities'. Cities has a foreign key of state, but when accessing the city registration, the state select didn't return the records.

 \ProtoneMedia\Splade\FormBuilder\Select::make('state_id')
              ->label(__('state'))
              ->choices()
              ->remoteUrl('/admin/states/api')
              ->remoteRoute('model.data')
              ->optionLabel('name')
              ->optionValue('id'),

image4

I stumbled upon the solution by chance: I removed 'model.' from the code in ->remoteRoute(), and the data was returned.

image5

 \ProtoneMedia\Splade\FormBuilder\Select::make('state_id')
              ->label(__('state'))
              ->choices()
              ->remoteUrl('/admin/states/api')
              ->remoteRoute('data')
              ->optionLabel('name')
              ->optionValue('id'),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.