Coder Social home page Coder Social logo

Comments (7)

bpocallaghan avatar bpocallaghan commented on May 22, 2024

Hi Mark.

Currently you have to use php artisan generate:publish-stubs to publish the stubs. Documentation
Please let me know if this it not working.

But I think its a good idea or "more correct" to move it to the publishes() method.
Thank you,

from generators.

markcameron avatar markcameron commented on May 22, 2024

Ah yes indeed I missed that part of the readme! I'll give that a shot! Thanks

from generators.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

Thank you for giving this package a shot, it seems you are the first one taking interest in this package, any feedback is welcome!

from generators.

markcameron avatar markcameron commented on May 22, 2024

Hey, I like the package, haven't had any problems. Would be nice if I could configure the add_edit view. I don't group them together in one file, but rather have the create.blade.php and edit.blade.php reference a partial that contains the form. There a chance of including something that allows for multiple custom view files from a single command? Where I could pass which stubs I want to include from the config file? like that I can add as many as I want?

from generators.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

Hi there, sorry, I've been crazy busy on other projects.
I have an idea that I want to implement. (Hopefully over the weekend)
I will let you know once I added a new version.
Thank you for the feedback.

from generators.

markcameron avatar markcameron commented on May 22, 2024

Hey,

No stress, in the mean time I've copied the ResourceCommand, and made changes to it and placed it in my Commands folder, did the same thing for a couple of other views that it uses, and it's doing the trick.

But look forward to any updates you might make!

Thanks

from generators.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

Hi there,
I've made a lot of changes, also created a new version: v2.0.0.

The main new features are:

  • config.php, the settings and resource_views. (in the readme, just below the main heading)
  • file command, to generate your own files you want, you can create a new settings type or just new stubs, then u can generate if from this command. The settings have a bit more logic to them (path, namespace, post fix, etc
  • Then the resource_views, you can split the add_edit up in there if you like, they just point to the list of subs key = value pair.
  • Then also the Available placeholders

Please feel free to play around with it and let me know if I missed something or if you would like to add something else or any other ideas.

from generators.

Related Issues (18)

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.