robinmalfait / laravel-auto-form-generator Goto Github PK
View Code? Open in Web Editor NEWLaravel automatic form generator
Laravel automatic form generator
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
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?
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
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 ๐
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!
How do I add line breaks before a label?
Hi I was wondering if you have plans for make this package compatible with Laravel 5
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
I was thinking to use this in my project. Question arises how to auto fill values based on $request input or after validation errors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.