New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kohkimakimoto/laravel-message-binder

A little hack for Illuminate View to access flash messages easily.
37 1

Larablocks Analysis

kohkimakimoto/laravel-message-binder works with Laravel 4 (latest release v0.1.1, Aug 17, 2014), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 4, past end of life
  • No release in the last 12 months (last: Aug 17, 2014)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 17, 2014.
  • No releases in the last 12 months.
  • First released: Aug 13, 2014.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.

Install
composer require kohkimakimoto/laravel-message-binder
Latest Version:v0.1.1
PHP:>=5.4.0
Laravel:4
License:MIT
Last Updated:Aug 17, 2014
Links: GitHub  ·  Packagist
Maintainer: kohkimakimoto

Laravel Message Binder

A little hack for Illuminate View to access flash messages easily.

You can use the withMessages method like a laravel builtin method withErrors in a general purpose.

Route::get('register', function()
{
    return View::make('user.register');
});

Route::post('register', function()
{
    $rules = array(...);

    $validator = Validator::make(Input::all(), $rules);

    if ($validator->fails())
    {
        return Redirect::to('register')->withErrors($validator);
    }

    // You can use the `withMessages` method like a laravel builtin method `withErrors` in a general purpose.
    return Redirect::to('register')->withMessages(array('default' => 'Success!');
});

After redirection, you may utilize the automatically bound $messages variable in your view:

<?php echo $messages->first('default'); ?>

see also laravel docs#validation

Installation

Add dependency in composer.json

"require": {
    "kohkimakimoto/laravel-message-binder": "0.*"
}

Run composer update command.

$ composer update

Add MessageBinderServiceProvider to providers array in app/config/app.php

'providers' => array(
    ...
    'Kohkimakimoto\MessageBinder\MessageBinderServiceProvider',
),

LICENSE

The MIT License

Author

Kohki Makimoto kohki.makimoto@gmail.com

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v0.1.1 >=5.4.0 4.* MIT
v0.1.0 >=5.4.0 4.* MIT