App\Repositories\BaseRepository::restore PHP 메소드

restore() 공개 메소드

public restore ( Model $model ) : boolean | null
$model Illuminate\Database\Eloquent\Model
리턴 boolean | null
    public function restore(Model $model)
    {
        $deleted = $model->restore();
        if ($deleted) {
            app('cache')->flush();
        }
        return $deleted;
    }