{"id":28388272,"url":"https://github.com/nicolashuber/larapid","last_synced_at":"2025-06-27T05:32:29.194Z","repository":{"id":38002937,"uuid":"400312327","full_name":"nicolashuber/larapid","owner":"nicolashuber","description":"A simple free alternative for Laravel Nova.","archived":false,"fork":false,"pushed_at":"2022-07-05T00:37:12.000Z","size":21898,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T05:23:28.712Z","etag":null,"topics":["admin-dashboard","admin-panel","cms","control-panel","inertiajs","laravel","laravel-nova","laravel-package","vuejs"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicolashuber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-26T21:39:07.000Z","updated_at":"2023-04-17T15:14:30.000Z","dependencies_parsed_at":"2022-08-08T22:45:51.546Z","dependency_job_id":null,"html_url":"https://github.com/nicolashuber/larapid","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/nicolashuber/larapid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolashuber%2Flarapid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolashuber%2Flarapid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolashuber%2Flarapid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolashuber%2Flarapid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolashuber","download_url":"https://codeload.github.com/nicolashuber/larapid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolashuber%2Flarapid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262198096,"owners_count":23273791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["admin-dashboard","admin-panel","cms","control-panel","inertiajs","laravel","laravel-nova","laravel-package","vuejs"],"created_at":"2025-05-30T21:09:30.713Z","updated_at":"2025-06-27T05:32:29.184Z","avatar_url":"https://github.com/nicolashuber.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Larapid\n\n![Status](https://img.shields.io/badge/Status-working%20in%20progress-1abc9c.svg \"Status\")\n![Stars](https://img.shields.io/github/stars/nicolashuber/larapid.svg \"Stars\")\n\n![Laravel](https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge\u0026logo=laravel\u0026logoColor=white \"Laravel\")\n![Vue.js](https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge\u0026logo=vue.js\u0026logoColor=4FC08D \"Vue.js\")\n\n\nA simple free alternative for Laravel Nova.\n\n## Install\n\n### Installing via Composer\n```\ncomposer require internexus/larapid\n```\n\n### Publish packages resources\n```\nphp artisan vendor:publish --tag=larapid\n```\n\n## Usage\n\n### Create a service provider\n```php\n\u003c?php\n\nnamespace App\\Providers;\n\nuse App\\Entities\\UserEntity;\nuse Illuminate\\Support\\ServiceProvider;\nuse Internexus\\Larapid\\Facades\\Larapid;\n\nclass LarapidServiceProvider extends ServiceProvider\n{\n    public function register()\n    {\n        Larapid::entities([\n            UserEntity::class,\n        ]);\n    }\n}\n```\n\n### Create an entity\n```php\n\u003c?php\n\nnamespace App\\Entities;\n\nuse App\\Models\\User;\nuse Internexus\\Larapid\\Entities\\Entity;\nuse Internexus\\Larapid\\Fields\\Email;\nuse Internexus\\Larapid\\Fields\\Password;\nuse Internexus\\Larapid\\Fields\\Text;\n\nclass UserEntity extends Entity\n{\n    public static $model = User::class;\n\n    public static $title = 'Usuários';\n\n    public function fields() {\n        return [\n            Text::make('Nome', 'name')-\u003erules('required'),\n            Email::make('E-mail', 'email')-\u003erules('required|email|max:255'),\n            Password::make('Senha', 'password')-\u003erules('required|min:6|max:255'),\n        ];\n    }\n}\n```\n\n## Fields\n\n### Text\n```php\nText::make('Label', 'column')\n```\n### Date\n```php\nDate::make('Created at', 'created_at')\n```\n### Datetime\n```php\nDatetime::make('Created at', 'created_at')\n```\n### Boolean\n```php\nBoolean::make('Public')\n```\n### Email\n```php\nEmail::make('E-mail')\n```\n### Password\n```php\nPassword::make('Password')\n```\n### Url\n```php\nUrl::make('Url')\n```\n### Money\n```php\nMoney::make('Price')\n```\n### Number\n```php\nNumber::make('Price')-\u003emin(10)-\u003emax(100)\n```\n### Select\n```php\nSelect::make('Status')-\u003eoptions([1 =\u003e 'Approved', 2 =\u003e 'Cancelled'])\n```\n### Textarea\n```php\nTextarea::make('Content')\n```\n### Media\n```php\nMedia::make('Featured image', 'media_id')\n     -\u003eaccept(['jpg', 'png'])\n     -\u003emaxSize(100000) // in bytes\n     -\u003eminDimension(100, 100)\n     -\u003emaxDimension(1920, 1080)\n```\n### HasMany\n```php\nHasMany::make('User posts', 'user_id', PostEntity::class, 'posts')\n```\n### BelongsTo\n```php\nBelongsTo::make('User role', 'role_id', UserEntity::class)\n```\n\n## Available Fields methods\n\n### Attributes\n - `help(string $text)`\n - `readOnly()`\n - `placeholder(string $placeholder)`\n\n### Validations\n - `rules(array $rules)`\n - `creationRules(array $rules)`\n - `updateRules(array $rules)`\n\n### Visibility\n - `showOnIndex()`\n - `showOnDetail()`\n - `showOnCreating()`\n - `showOnUpdating()`\n - `hideFromIndex()`\n - `hideFromDetail()`\n - `hideWhenCreating()`\n - `hideWhenUpdating()`\n - `onlyOnIndex()`\n - `onlyOnDetail()`\n - `onlyOnForms()`\n - `exceptOnForms()`\n\n### Search and sort\n - `sortable()`\n - `searchable()`\n\n## Available Entity methods\n### Visibility\n - `fieldsForIndex()`\n - `fieldsForDetail()`\n - `fieldsForCreating()`\n - `fieldsForUpdating()`\n\n### Actions\n - `enableEditing()`\n - `enableDetail()`\n - `enableDeleting()`\n\n### Hooks\n - `beforeSaving()`\n - `afterCreated()`\n - `afterUpdated()`\n\n### Redirects\n - `redirectAfterCreate(Model $model)`\n - `redirectAfterUpdate(Model $model)`\n - `redirectAfterDelete(Model $model)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolashuber%2Flarapid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolashuber%2Flarapid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolashuber%2Flarapid/lists"}