PHPackages                             mhmiton/laravel-turbolinks-form - 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. mhmiton/laravel-turbolinks-form

ActiveLibrary

mhmiton/laravel-turbolinks-form
===============================

Laravel form submission with Turbolinks.

v1.0.0(5y ago)261MITPHPPHP &gt;=7.0

Since May 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mhmiton/laravel-turbolinks-form)[ Packagist](https://packagist.org/packages/mhmiton/laravel-turbolinks-form)[ RSS](/packages/mhmiton-laravel-turbolinks-form/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Turbolinks Form
=======================

[](#laravel-turbolinks-form)

Laravel form submission with [Turbolinks](https://github.com/turbolinks/turbolinks).

### Installation

[](#installation)

> **Requires:**

- **[PHP 7.0+](https://php.net/releases/)**
- **[Laravel 5.5+](https://github.com/laravel/laravel)**

Install through Composer:

```
composer require mhmiton/laravel-turbolinks-form

```

You can publish the config file by running:

```
php artisan vendor:publish --provider="Mhmiton\\LaravelTurbolinksForm\\LaravelTurbolinksFormServiceProvider" --tag="config"

```

You can publish the views by running:

```
php artisan vendor:publish --provider="Mhmiton\\LaravelTurbolinksForm\\LaravelTurbolinksFormServiceProvider" --tag="views"

```

### Register Middleware

[](#register-middleware)

The `\Mhmiton\LaravelTurbolinksForm\Middleware\Turbolinks::class` middleware must be registered in the kernel.

**Example**

```
// app/Http/Kernel.php

...

protected $middlewareGroups = [
    'web' => [
        ...
        \Mhmiton\LaravelTurbolinksForm\Middleware\Turbolinks::class,
    ],

    ...
];

```

### Validation

[](#validation)

For the form validation, you need to use the `\Mhmiton\LaravelTurbolinksForm\Traits\TurbolinksValidatable` trait in the exception handler.

**Example**

```
// app/Exceptions/Handler.php

...
use Mhmiton\LaravelTurbolinksForm\Traits\TurbolinksValidatable;

class Handler extends ExceptionHandler
{
    use TurbolinksValidatable;

    ...
}

```

### Scripts

[](#scripts)

Include these package scripts in your layout file.

**Example**

```
@include('turbolinks-form::scripts')

// Laravel 7 or greater

```

**Note:** You can modify these scripts by publishing the views file.

### Config

[](#config)

The config file is located at `config/turbolinks-form.php` after publishing the config file.

**Enable or Disable**

```
/*
|--------------------------------------------------------------------------
| TurbolinksForm settings
|--------------------------------------------------------------------------
| TurbolinksForm is enabled by default.
| You can override the value by setting enable to true or false.
|
*/

'enabled' => env('TURBOLINKS_FORM', true)

// or using .env file
TURBOLINKS_FORM=true

```

**Selector**

```
/*
|--------------------------------------------------------------------------
| TurbolinksForm selector
|--------------------------------------------------------------------------
| TurbolinksForm used form selector by default.
| You can use any DOM selector for the form.
|
*/

'selector' => 'form'

```

### License

[](#license)

Copyright (c) 2021 Mehediul Hassan Miton

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32da0ac461afc7803dd05f603044a4a05e93e19d3e4f043ee627f60883f22c03?d=identicon)[mhmiton](/maintainers/mhmiton)

---

Top Contributors

[![mhmiton](https://avatars.githubusercontent.com/u/38657829?v=4)](https://github.com/mhmiton "mhmiton (1 commits)")

---

Tags

laravelturbolinkslaravel-turbolinks-formlaravel-turbolinksturbolinks-form

### Embed Badge

![Health badge](/badges/mhmiton-laravel-turbolinks-form/health.svg)

```
[![Health](https://phpackages.com/badges/mhmiton-laravel-turbolinks-form/health.svg)](https://phpackages.com/packages/mhmiton-laravel-turbolinks-form)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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