bepark/laravel-confirm

Extends laravel by adding confirmation tools

0.5.4 2017-09-27 10:36 UTC

This package is auto-updated.

Last update: 2024-04-28 18:18:43 UTC


README

Add tools to help you plaing with confirmation inside your controller

Usage

// inside a controller

	public function getDoSomething(ConfirmService $confirmService)
	{
		$message = ConfirmMessage::createBasic('my.pefix');

		return $confirmService->confirmByForm($message, 'my.title.confirmation');
	}

	public function postDoSomething(ConfirmRequest $request)
	{
		// do something because it's confirmed
	}

Installation using composer

composer require bepark/laravel-confirm

That's all

Todo

  • Automated tests
  • Add more docs than a simple readme
  • Add configuration to let people play with custom view
  • Add example of view with blade
  • Beeing compatible with publish command for view ;)

License

The MIT License (MIT). See the license file for more information.