Giter VIP home page Giter VIP logo

generator-builder's Introduction

InfyOm

InfyOm Laravel Generator GUI Builder

Documentation

Read Documentation for detailed installation steps and usage.

Support Us

We have created 14+ Laravel packages and invested a lot of resources into creating these all packages and maintaining them.

You can support us by either sponsoring us or buying one of our paid products. Or help us by spreading the word about us on social platforms via tweets and posts.

Buy our Paid Products

InfyGPT

You can also check out our other paid products on CodeCanyon.

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site.

Backers

Become a backer and get your image on our README on Github with a link to your site.

Follow Us

Made with InfyOm Generator

Also, Do not forget to add your website to Made with InfyOm Generator List list.

Security

If you discover any security-related issues, create an issue using the issue tracker.

Credits

License

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

generator-builder's People

Contributors

ajayinfyom avatar ankitinfyom avatar farhaninfyom avatar m4r14 avatar mitulgolakiya avatar nikhilbhatia22 avatar phillipmadsen avatar slivicon avatar vishalinfyom avatar vnetmx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-builder's Issues

generator builder not working

I'll get this error when trying to use the generator builder

[2016-05-25 05:07:21] local.ERROR: exception 'ErrorException' with message 'mkdir(): Permission denied' in /Applications/XAMPP/xamppfiles/htdocs/playground/vendor/infyomlabs/laravel-generator/src/Generators/Scaffold/ViewGenerator.php:36

Before this I needed to give writing access to several folders like Models, Controllers, Migrations etc

But what can I do now? And why is this?

Regards
kay899

How to build boolean field with Generator UI?

Hi,

I want to build an active flag with Generator UI.

Choosing boolean as DB type and Checkbox as HtmlType.

Generation is then failing. I suppose that this fieldtype need more info then just the HtmlType name, right?

"fieldInput": "is_active:boolean", /* BOOLEAN CHECKBOX */

"htmlType": "bool-checkbox:checked", /* OPTIONS ARE CHECKED | UNCHECKED */

How could we use Checkboxes or Bools with the Generator UI?

Regards
kay899

Cannot Generate : [ErrorException] Undefined index: name

in this code on vendors/InfyOmLabs/generator-builder/controllers/GeneratorBuilderController.php ;
private function validateFields($fields)
{
$fieldsGroupBy = collect($fields)->groupBy(function ($item) {
return strtolower($item['name']);
});

    $duplicateFields = $fieldsGroupBy->filter(function (Collection $groups) {
        return $groups->count() > 1;
    });
    if (count($duplicateFields)) {
        throw new \Exception('Duplicate fields are not allowed');
    }

    return true;
}

return error responseText: "{↵ "message": "Undefined index: name".
How to fix this?

txtDbValue always hidden

There is a reason why the txtDbValue is always hidden?

This https://github.com/InfyOmLabs/generator-builder/blob/master/views/field-template.blade.php#L29

Should be appended to dbType like for htmlType and htmlValue

I can make a PR to:

  1. Make this field .txtDbValue always visible

  2. Add in form submit:

                // Append db value
                var dbType = $this.find('.txtdbType').val();
                // if not empty append
                if($this.find('.dbValue').val())  dbType = dbType + ':' + $this.find('.dbValue').val()

// ...

fieldArr.push({
                    name: $this.find('.txtFieldName').val(),
                    dbType: dbType, // here dbType
                    htmlType: htmlValue,
//...

And I would like to know about relation for each field as in your fields_sample.json there is for example:

    {
        "name": "writer_id",
        "dbType": "integer:unsigned:default,0:foreign,writers,id",
        "htmlType": "text",
        "relation": "mt1,Writer,writer_id,id"
    },

Right now seem not possible to add relation like this for each field, or am I missing something?

Fail! The command "infyom:api" does not exist.

I have installed the following libraries. But when using InfyOm Laravel Generator Builder, I get this error.
Even though I tried using the command line with php artisan infoom:api it still worked

composer.json:

"infyomlabs/adminlte-templates": "^5.0",
        "infyomlabs/generator-builder": "^1.0",
        "infyomlabs/laravel-generator": "^5.0",
        "infyomlabs/laravel-ui-adminlte": "^5.1",

image

dropdown for the foreign key (from other table) from GUI

I have categories (id, name ) model Category
I have posts (id,name,cat_id.) model Post

In GUI,
cat_id integer (no validation) select (foreign key checked)
categories,id

Add relationship
Many to one Category id cat_id (local)

I want to get drop down for categories in post form.

i see in Model some links are created and in mysql table (foreign keys are established) but nothing on views. just plain text or select with out options

doing that not possible?

[Feature] Features Request

It would be nice if generator builder GUI has

  • Select connect from model
  • Multiple select and connect to model
  • Use locale or not
  • Check specific generate files (index,create,edit,show)
  • Check nullable or not, check unsigned or not for database
  • Check factory or not
  • Check seeder or not
  • Check uuid or not
  • Loader after click 'Generate'
  • Generate from database
  • Add permission or not (Integrate with spatie)

Generator fields not working at all

Hi,
First i would like to say thanks for this great project, here is what i've done:

  1. Clone AdminLTE Boilerplate
  2. Set required permissions
  3. Composer install
  4. Install generator-builder according to docs without customizations
  5. Artisan migrate ( for users table )
  6. Register & login & go to public/generator_builder in browser
  7. Created simple model with only id(via add primary) and name(via add field) as string and clicked on generate
  8. I check generated pages and models, the only things has been created was:
    protected $dates = ['deleted_at'];

I didn't even used soft deletes ! $fillable was also empty.
Did i do anything wrong?

use on Lumen

hi
we can use generator-builder ort other InfyOmLabs package on lumen??? or not that can work with laravel?

Quick question

when you click the generate button is is supposed to run the command type command. All it is doing on mine is creating the migration file. nothing else. Am I missing a step.

Poll: Suggestion for better Interface UI/UX

I am creating this thread where people can submit the idea like what changes we can make to existing builder UI to make it even better in terms of UI/UX.

Please submit your idea or any example that helps to make it even better.

how do I help correct and clarify info in your instructions and docs?

Correction needed on the following page

http://labs.infyom.com/laravelgenerator/docs/options/scaffold-options

change

Datatables

Generator also have ability to generate CRUD file with datatables. To enable datatables option, you need to install yajra/laravel-datatables package. You can find a full installation steps here.

Once, you are done with installation.
Make 'add_on.datatables' => true in config/infyom/_generator_builder.php._

to this

Datatables

Generator also have ability to generate CRUD file with datatables. To enable datatables option, you need to install yajra/laravel-datatables package. You can find a full installation steps here.

Once, you are done with installation.
Make 'add_on.datatables' => true in config/infyom/_laravel_generator.php._

I would help you with these but im not sure where to do it.
There are some others as well.

Also any news on the routePrefix and pathPrefix options
and possibly a %prefix us this layout option%

possible adjustments

Also need to add unsigned and nullable checkboxes to options fields for each new column/ field.

Any luck on this, just wondering. I think the easiest way to make this work would be have the following fields added to the generator page. I see prefix maybe seperate it into

%viewsPrefix%
%routePrefix%

and add a dropdown to select the layout / theme files to use for the generation

%layoutToUse% = auto populated by themes in the themes directory

example the
basic default bootstrap
adminLTE
Custom 1
Custom 2

first issues

It is causing high cpu load by apache while generating scaffold

documentation is not proper for installation

  1. registering \InfyOm\AdminLTETemplates\AdminLTETemplatesServiceProvider::class, is missing in doc for admin lte template

  2. typo open generator-builder it should be generator_builderin Generator GUI Interface installation

  3. publishing layouts section should be in templates section not in advance section of docs

  4. There should be quick start guide in docs where all installation steps available in single file.

Can't Auto Migrated From Generator builder

Hi,

I try to create crud from generator builder. And then add model and fill all of table field from there. Even though successfully generated crud, but can't auto migrate to database. So that i have to type with laravel migrated command. It was little confused.

the id and timestamps not added automatically >>

so why is it that id and time stamps get added automatically on the cli but not on the builder generator ??

doesn't it make scense to make it automatic here too ??
I forget every time to add them and has to add them automatically ..

Generator useless on mine

I am using Laravel 5.4, The generator js work fine. I can add field and all but after i clicked GENERATE button it showed successful but nothing changed on my code. Please help me

Fatal error: Class 'Illuminate\Support\Composer' not found

This error happens in Laravel 5.2.x when i try to create a model. It seems like the API that does the creating is not up to date. I read this about another package when I Googled:

laralib/l5scaffold#29

That's a similar error as this one. The simplest temporary solution would be to do a recursive search of Illuminate\Foundation\Composer in your vendors directory and replace it with Illuminate\Support\Composer throughout your project...
Afterwards you'll have to wait for the needed changes being adopted by the package vendors.

When I generated using command prompt everything worked well. So I think this is isolated to the Gui Builder.

HtmlType not all types choosable

Hi,

I noticed that not all existing HtmlTypes are choosable in the Builder UI.

Is there a reason why types like boolean and toogle are missing?

Regards
kay899

×Fail! Use of undefined constant STDIN

I had this error when I tried to use the generator builder on Laravel Framework 7.6.2

×Fail! Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP)
and this was my input :
ScreenShot_20200418010424

Criteria does not work without a get parameter.

I have the following criteria:
public function apply( $model , RepositoryInterface $repository )
{
if ( !Auth::user()->can( 'view_all_customers' ) ) {
$model->where( 'customer_id' , 'IN',Auth::user()->customersArr() );
}

    return $model;
}

This is correct, why does it work when I pass the orgerBy parameter in the url. but when I do not pass, it simply ignores my criteria.
Does anyone know what can it be?

issue with migration and underscore

I have created a scaffold with the model Order_Status. There are two issues that seem to be generated.

First, the migration is created with
class CreateOrder_StatusesTable extends Migration but when I try to migrate I get the error
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'CreateOrderStatusesTable' not found

If I change the line to class CreateOrderStatusesTable extends Migration the migration runs.

In the migration file, the generator is also putting double underscores in the create and drop table name
Schema::drop('order__statuses');

Use of undefined constant STDIN - assumed 'STDIN

I see there is already an issue about this here #54

And seem already an old issue, see laravel/framework#4721

When running artisan via console, STDIN is already defined, but not when running via controller like generator-builder.

Defining STDIN fix issue, example:

if(! defined('STDIN')) define('STDIN', fopen("php://stdin","r"));

Load existing schemas

Idea to have an combobox where we can load all existing saved schemas and can generate files again.

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.