Comments (11)
@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.
@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.
+1 for this!
from crud-generator.
Will add this later :)
from crud-generator.
+1 for this too!
from crud-generator.
Great package and a +1 for customizing %%formFieldsHtml%%
from crud-generator.
has this been implemented? I may as well take this on :)
from crud-generator.
No I didn't implement yet.
You can proceed and many many thanks for your effort :)
from crud-generator.
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.
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.
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)
- Generate API uses web controller stub
- Custom template doesn't work HOT 1
- I can't remove in composer HOT 1
- Laravel 6.0 is here!! HOT 3
- FIXED : Report breaks when Parameter value contains comma or special character that can break commandline
- Use implicit bind in generated controllers?
- for foreign key option there should be a dropdown form that table
- Any plans to integrate the UI like the Admin project? HOT 1
- how i want to use intregate with nwidart module package? HOT 2
- How I create a view with reference in two tables
- ID dont change
- laravel 8.0 support HOT 1
- Fork to Crud Generator HOT 1
- Using route() instead of url() HOT 2
- View [admin.sidebar] not found
- Laravel 9 support HOT 3
- Not working on Laravel 9 HOT 2
- CRUD dont show HOT 1
- Use Package in Modules nwidart
- To work on Laravel 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crud-generator.