Download the PHP package sukohi/save-without-event without Composer
On this page you can find all versions of the php package sukohi/save-without-event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sukohi/save-without-event
More information about sukohi/save-without-event
Files in sukohi/save-without-event
Download sukohi/save-without-event
More information about sukohi/save-without-event
Files in sukohi/save-without-event
Vendor sukohi
Package save-without-event
Short Description A Laravel package to prevent firing a specific event(s) of model when saving.
License MIT
Package save-without-event
Short Description A Laravel package to prevent firing a specific event(s) of model when saving.
License MIT
Please rate this library. Is it a good library?
Informations about the package save-without-event
SaveWithoutEvent
A Laravel package to prevent firing a specific event(s) of model when saving.
Installation
Execute composer command.
composer require sukohi/save-without-event:1.*
Preparation
In your model, set SaveWithoutEventTrait
.
<?php
namespace App;
use Sukohi\SaveWithoutEvent\SaveWithoutEventTrait;
class User {
use SaveWithoutEventTrait;
That's all.
Now you can use saveWithoutEvent
method.
Usage
Use saveWithoutEvent()
instead of save()
like so.
$user = new \App\User;
// Something..
$user->saveWithoutEvent('saved');
// or with array
$user->saveWithoutEvent(['saving', 'saved']);
saveWithoutEvent()
will return boolean result value assave()
do.
License
This package is licensed under the MIT License.
Copyright 2017 Sukohi Kuhoh
All versions of save-without-event with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
~5.0
The package sukohi/save-without-event contains the following files
Loading the files please wait ....