Git Product home page Git Product logo

laravel-auto-form-generator's Introduction

laravel-auto-form-generator's People

Contributors

benbridts avatar ee0pdt avatar robinmalfait 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-auto-form-generator's Issues

Can't install

I get this when trying to install the form generator

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: remove laravel/framework v4.1.23
- Conclusion: don't install laravel/framework v4.1.23
- Conclusion: don't install laravel/framework v4.1.22
- Conclusion: don't install laravel/framework v4.1.21
- Conclusion: don't install laravel/framework v4.1.20
- Conclusion: don't install laravel/framework v4.1.19
- Conclusion: don't install laravel/framework v4.1.18
- Conclusion: don't install laravel/framework v4.1.17
- Conclusion: don't install laravel/framework v4.1.16
- Conclusion: don't install laravel/framework v4.1.15
- Conclusion: don't install laravel/framework v4.1.14
- Conclusion: don't install laravel/framework v4.1.13
- Conclusion: don't install laravel/framework v4.1.12
- Conclusion: don't install laravel/framework v4.1.11
- Conclusion: don't install laravel/framework v4.1.10
- Conclusion: don't install laravel/framework v4.1.9
- Conclusion: don't install laravel/framework v4.1.8
- Conclusion: don't install laravel/framework v4.1.7
- Conclusion: don't install laravel/framework v4.1.6
- Conclusion: don't install laravel/framework v4.1.5
- Conclusion: don't install laravel/framework v4.1.4
- Conclusion: don't install laravel/framework v4.1.3
- Installation request for robin-malfait/formgenerator dev-master -> satisfiable by robin-malfait/formgenerator[dev-master].
- Conclusion: don't install laravel/framework v4.1.2
- Conclusion: don't install laravel/framework v4.1.1
- robin-malfait/formgenerator dev-master requires illuminate/support 4.0.x -> satisfiable by illuminate/support[v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
- don't install illuminate/support v4.0.0|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.1|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.10|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.2|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.3|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.4|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.5|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.6|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.7|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.8|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.9|don't install laravel/framework v4.1.0
- Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].

tried setting the framework to 23, and still didn't work...
some help would be appreciated.

following is my composer.json file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.",
"fzaninotto/faker": "
",
"laravelbook/ardent": "dev-master",
"zizaco/entrust": "dev-master",
"zizaco/confide": "dev-master",
"robin-malfait/formgenerator": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}

thanks

Initial value for text inputs

Currently, there is not a way (that I can see) to set an initial value on a text input. I have looked at the code and have inserted the following into the switch statement:

case 'text':
                        if ($this->getContentBefore($fieldName))
                            $data[] = $this->getContentBefore($fieldName);

                        if ($this->getSettings('showLabels')) {
                            $data[] = $this->form->label($fieldName, $this->getLabelText($fieldName) . ':');
                        }

                        if ($this->getSettings('types', $fieldName, 'value'))
                            $data[] = $this->form->input($type, $fieldName, $this->getSettings('types', $fieldName, 'value'), $extras);
                        else
                            $data[] = $this->form->input($type, $fieldName, null, $extras);

                        if ($this->getContentAfter($fieldName))
                            $data[] = $this->getContentAfter($fieldName);

                        break;

I don't want to add my code into your file in case of future updates. Is this something that can be added?

How to generate form from a model, I do with tables and it work

Sir,

This is not an issue, i want one example to generate forms from model...

{{ Form::model($model = new Admin()) }}
{{ Formgenerator::generate($model) }}
{{ Form::close() }}

This may be a wrong method

{{ Form::open() }}
{{ Formgenerator::generate('table-name') }}
{{ Form::close() }}
works, Please give me some example with model..

Thanks

Field name problem

i have an issue with the field name, it have to be the exact phrase as the field name in the database
why don't you make it ignore case so it's easier to use
thanks ๐Ÿ’ƒ

Doctrine dependency not mentioned in docs

Hi, just thought I would mention that since Doctrine is no longer installed in Laravel by default, Doctine needs to be pulled in before this (rather fabulous) package works. I couldn't see any mention of this in the docs or composer install.

Thanks!

PostgreSQL doesn't use SHOW COLUMNS

I get an SQL error when I try to make a form for a model using a 'pgsql' connection.

SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "FROM" LINE 1: SHOW COLUMNS FROM table name

For PostgreSQL you'd instead use:
select column_name, data_type, character_maximum_length
from INFORMATION_SCHEMA.COLUMNS where table_name = 'table name';

Also relevant: http://stackoverflow.com/a/19953826

Auto fill values

I was thinking to use this in my project. Question arises how to auto fill values based on $request input or after validation errors.

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.