PHPackages                             barbosalb96/blade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. barbosalb96/blade

ActiveLibrary[Templating &amp; Views](/categories/templating)

barbosalb96/blade
=================

011PHP

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Barbosalb96/Generate_form_request)[ Packagist](https://packagist.org/packages/barbosalb96/blade)[ RSS](/packages/barbosalb96-blade/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

barbosalb96/blade
=================

[](#barbosalb96blade)

A Laravel package for generating Blade form templates based on a request class with validation rules.

Installation
------------

[](#installation)

You can install this package via Composer. Run the following command in your Laravel project:

```
composer require barbosalb96/blade:dev-master --prefer-stable
```

Once installed, the package will automatically register its service provider.

Usage
-----

[](#usage)

After installation, you can use the `make:form-from-request` command to generate a Blade form based on an existing request class.

### Command Syntax

[](#command-syntax)

```
php artisan make:form-from-request {request}  {type}
```

- `{request}`: The name of the request class (e.g., `UserRequest`).
- `{type}`: The form style to generate. This can be either `tailwind` or `bootstrap`.

### Example

[](#example)

To generate a Blade form from a request class `UserRequest` with Tailwind CSS styling:

```
php artisan make:form-from-request UserRequest type tailwind
```

This will generate a Blade view in `resources/views/UserRequest.blade.php` based on the validation rules defined in the `UserRequest` class.

### Form Fields

[](#form-fields)

The form fields are automatically generated based on the validation rules of the request class. The following field types are supported:

- **text**: For string-based fields.
- **number**: For integer fields.
- **checkbox**: For boolean fields.
- **date**: For date fields.
- **email**: For email fields.

### Views

[](#views)

The Blade views are generated from two templates:

- `form_template_tailwind`: For generating forms with Tailwind CSS classes.
- `form_template_bootstrap`: For generating forms with Bootstrap classes.

You can customize these templates by publishing them to your application:

```
php artisan vendor:publish --provider="barbosalb96\Blade\GenerateBladeFromRequestServiceProvider" --tag="views"
```

The views will be published to `resources/views/vendor/lucas/blade`.

Service Provider
----------------

[](#service-provider)

The package includes a service provider (`GenerateBladeFromRequestServiceProvider`) that registers the necessary commands and views.

Contributing
------------

[](#contributing)

Feel free to fork the repository and create a pull request if you have suggestions for improvements or bug fixes.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65544563?v=4)[Barbosalb96](/maintainers/Barbosalb96)[@Barbosalb96](https://github.com/Barbosalb96)

### Embed Badge

![Health badge](/badges/barbosalb96-blade/health.svg)

```
[![Health](https://phpackages.com/badges/barbosalb96-blade/health.svg)](https://phpackages.com/packages/barbosalb96-blade)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
