bepark/laravel-confirm

Extends laravel by adding confirmation tools
12,091
Install
composer require bepark/laravel-confirm
Latest Version:0.5.4
License:MIT
Last Updated:Sep 27, 2017
Links: GitHub  ·  Packagist
Maintainer: BotBepark

Laravel Confirm

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.

Related Packages

marcorombach/livewire-confirm-modal

Like the wire confirm directive but displayed as modal on your page.

610 3
tyondo/laravel-notifications

User notifications via email for Laravel 5.3 and 5.4.

50 0
milenmk/laravel-email-change-confirmation

A Laravel package for secure email change confirmation with support for both tra...

32 2
islamalsayed/laravel-toasts

Modern, elegant toast notifications and confirmation dialogs for Laravel with fu...

28 0