Skip to content

Commit

Permalink
L6 supported now.
Browse files Browse the repository at this point in the history
  • Loading branch information
roblesterjr04 committed Nov 11, 2021
1 parent 3f063e2 commit bd4bad7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require": {
"php": "^7.0 || ^8.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"laravel/framework": "^7.0 || ^8.40.0",
"laravel/framework": "^6.0 || ^7.0 || ^8.40.0",
"omniphx/forrest": "^2.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class Model extends EloquentModel
protected $guarded = [];
protected $readonly = [];

protected $dateFormat = 'Y-m-d\TH:i:s';
protected $dateFormat = 'Y-m-d\TH:i:s.vO';

protected $dates = [
'CreatedDate',
Expand Down
10 changes: 2 additions & 8 deletions src/Traits/SyncsWithSalesforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ trait SyncsWithSalesforce
{
private $tempSyncObject = null;

public static function booted()
public static function boot()
{
/*static::creating(function ($model) {
$model->syncWithSalesforce();
});
static::updating(function ($model) {
$model->syncWithSalesforce();
});*/
parent::boot();

self::observe(Syncronizer::class);
}
Expand Down

0 comments on commit bd4bad7

Please sign in to comment.