{"id":15024315,"url":"https://github.com/vaneves/laravel-form","last_synced_at":"2026-01-30T22:40:23.553Z","repository":{"id":57076824,"uuid":"79485112","full_name":"vaneves/laravel-form","owner":"vaneves","description":"💠 HTML Helper for Laravel Framework","archived":false,"fork":false,"pushed_at":"2017-12-01T18:11:10.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T19:33:25.048Z","etag":null,"topics":["bootstrap3","laravel-form"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaneves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-19T19:05:34.000Z","updated_at":"2019-12-13T22:32:56.000Z","dependencies_parsed_at":"2022-08-24T14:55:55.681Z","dependency_job_id":null,"html_url":"https://github.com/vaneves/laravel-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vaneves/laravel-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Flaravel-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Flaravel-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Flaravel-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Flaravel-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaneves","download_url":"https://codeload.github.com/vaneves/laravel-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Flaravel-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28921553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap3","laravel-form"],"created_at":"2024-09-24T20:00:07.045Z","updated_at":"2026-01-30T22:40:23.538Z","avatar_url":"https://github.com/vaneves.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Form\n\n## Installing with Composer\n\n```\ncomposer require vaneves/laravel-form\n```\n\n### Configuration\n\nAdd the `Form` facade to the `aliases` array in `config/app.php`:\n\n```php\n'aliases' =\u003e [\n    //...\n    'Form' =\u003e Vaneves\\Laravel\\Form\\Form::class,\n]\n```\n\n## Usage\n\n### Basic\n\n```php\n{!! Form::open('register') !!}\n  {!! Form::text('Your name', 'name') !!}\n  {!! Form::email('Email', 'email') !!}\n  {!! Form::password('Password', 'password') !!}\n  {!! Form::reset('Clear')-\u003ewarning() !!}\n  {!! Form::submit('Save')-\u003eprimary() !!}\n{!! Form::close() !!}\n```\n\n\n### Forms Methods\n\n#### open([string $action])\n\n#### close()\n\n#### action($path)\n\n#### method($name)\n\n- get()\n- post()\n- put()\n- patch()\n- delete()\n\n#### horizontal([array $sizes])\n\n#### inline()\n\n#### required()\n\n#### placeholder()\n\n#### hideLabel()\n\n#### lg()\n\n#### sm()\n\n### Fields Types\n\n### Fields Methods\n\n#### required()\n\nAdd attribute `required` in field.\n\n#### optional()\n\nRemove attribute `required` from field.\n\n#### lg()\n\nAdd class `input-lg` in field.\n\n#### sm()\n\nAdd class `input-sm` in field.\n\n#### attr(string $name [, string $value])\n\nAdd an attribute with `data` in element. Example:\n\n```php\n{!! Form::text('Your Name', 'name')-\u003eattr('my-prop', 'value') !!}\n```\n\nOutput:\n```html\n\u003cdiv class=\"form-group\"\u003e\n  \u003clabel for=\"name\"\u003eYour Name\u003c/label\u003e\n  \u003cinput type=\"text\" class=\"form-control\" id=\"name\" my-prop=\"value\"\u003e\n\u003c/div\u003e\n```\n\n#### removeAttr(string $name)\n\nRemove an attribute from element.\n\n#### data(string $name [, string $value])\n\nAdd an attribute with `data` in element. Example:\n\n```php\n{!! Form::text('Your Name', 'name')-\u003edata('my-prop', 'value') !!}\n```\n\nOutput:\n```html\n\u003cdiv class=\"form-group\"\u003e\n  \u003clabel for=\"name\"\u003eYour Name\u003c/label\u003e\n  \u003cinput type=\"text\" class=\"form-control\" id=\"name\" data-my-prop=\"value\"\u003e\n\u003c/div\u003e\n```\n\n#### addClass(string $name)\n\nAdd an class in element. Example:\n\n```php\n{!! Form::text('Your Name', 'name')-\u003eaddClass('material-design') !!}\n```\n\nOutput:\n```html\n\u003cdiv class=\"form-group\"\u003e\n  \u003clabel for=\"name\"\u003eYour Name\u003c/label\u003e\n  \u003cinput type=\"text\" class=\"form-control material-design\" id=\"name\"\u003e\n\u003c/div\u003e\n```\n\n#### removeClass(string $name)\n\nRemove class from element.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Flaravel-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaneves%2Flaravel-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Flaravel-form/lists"}