Coder Social home page Coder Social logo

Comments (11)

ebisbe avatar ebisbe commented on July 27, 2024 3

@decalages @ChangePlaces
What do you mean with customize this? You can override it with a CustomViewCommand that extends ViewCommand. Create your own views and pass your custom variables. That's why I made this change.
You can check this gist for a example https://gist.github.com/ebisbe/6e2973708e07be64cc0e14c4dbc72e11

from crud-generator.

bsadnu avatar bsadnu commented on July 27, 2024 2

@ebisbe is right!
The simplest way is to override vendor commands. Just create command inside /app/Console/Commands
Here`s my example for StartUI admin template https://gist.github.com/bsadnu/b9ae489fb396bebf0ddc27b95d94153c

Don`t forget to put command to /app/Console/Kernel.php. Like this:
https://gist.github.com/bsadnu/e47e970336a8dd84629932b79476f572

Enjoy!

BTW. If someone dislike capital-first-letter filenames in /resources/lang you may also create custom command:
https://gist.github.com/bsadnu/65a09e2e94a0282260e7e3aac4b6e2cd
https://gist.github.com/bsadnu/e47e970336a8dd84629932b79476f572

from crud-generator.

bzelba avatar bzelba commented on July 27, 2024

+1 for this!

from crud-generator.

sohelamin avatar sohelamin commented on July 27, 2024

Will add this later :)

from crud-generator.

MaMouT514 avatar MaMouT514 commented on July 27, 2024

+1 for this too!

from crud-generator.

sloan58 avatar sloan58 commented on July 27, 2024

Great package and a +1 for customizing %%formFieldsHtml%%

from crud-generator.

ChangePlaces avatar ChangePlaces commented on July 27, 2024

has this been implemented? I may as well take this on :)

from crud-generator.

sohelamin avatar sohelamin commented on July 27, 2024

No I didn't implement yet.
You can proceed and many many thanks for your effort :)

from crud-generator.

ChangePlaces avatar ChangePlaces commented on July 27, 2024

haven't got time to look at this after all the other commits! well, it hasn't been reopened, so i'm guessing you don't care for this!

from crud-generator.

jonashamm avatar jonashamm commented on July 27, 2024

Agree: great package @sohelamin
Thanks @ebisbe and @bsadnu for showing how to customize form fields.

But I think it would even be better, if there where templates published into "views/crud-generator/form-fields" by running
php artisan vendor:publish --provider="Appzcoder\CrudGenerator\CrudGeneratorServiceProvider"
There they could be "flat" blade files and would be more intuitive to edit (at least I think so). I know in "vendor/appzcoder/crud-generator/src/stubs" I can edit package assets (stub-files). But so far I don't know how to make %%formFieldsHtml%% in "resources/crud-generator/form.blade.stub" render fields from "resources/crud-generator/form-fields" by creating a new CRUD. Can anybody help me on this? :)

from crud-generator.

sohelamin avatar sohelamin commented on July 27, 2024

Hello Guys,

Recently @johnnydoe82 made awesome changes on %%formFieldsHtml%% section at c8dca17
Please have a look into this when you get some time and share your ideas.

from crud-generator.

Related Issues (20)

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.