2017 © Pedro Peláez
 

library save-without-event

A Laravel package to prevent firing a specific event(s) of model when saving.

image

sukohi/save-without-event

A Laravel package to prevent firing a specific event(s) of model when saving.

  • Tuesday, August 1, 2017
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 100 % Grown

The README.md

SaveWithoutEvent

A Laravel package to prevent firing a specific event(s) of model when saving., (*1)

Installation

Execute composer command., (*2)

composer require sukohi/save-without-event:1.*

Preparation

In your model, set SaveWithoutEventTrait., (*3)

<?php

namespace App;
use Sukohi\SaveWithoutEvent\SaveWithoutEventTrait;

class User {

    use SaveWithoutEventTrait;

That's all. Now you can use saveWithoutEvent method., (*4)

Usage

Use saveWithoutEvent() instead of save() like so., (*5)

$user = new \App\User;
// Something..
$user->saveWithoutEvent('saved');

// or with array

$user->saveWithoutEvent(['saving', 'saved']);
  • saveWithoutEvent() will return boolean result value as save() do.

License

This package is licensed under the MIT License., (*6)

Copyright 2017 Sukohi Kuhoh, (*7)

The Versions

01/08 2017

1.0.x-dev

1.0.9999999.9999999-dev

A Laravel package to prevent firing a specific event(s) of model when saving.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

01/08 2017

dev-master

9999999-dev

A Laravel package to prevent firing a specific event(s) of model when saving.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

01/08 2017

1.0.0

1.0.0.0

A Laravel package to prevent firing a specific event(s) of model when saving.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi