Skip to content

Commit

Permalink
Update for release
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdaws committed Feb 16, 2015
1 parent 06413d2 commit 108902d
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 633 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sjdaws/vocal",
"description": "Recursive functionality for Eloquent in Laravel 4 and 5",
"version": "2.0.0-dev",
"version": "2.0.0",
"type": "library",
"license": "MIT",
"keywords": ["laravel", "laravel4", "laravel5", "eloquent", "recursive", "hydration", "validation"],
Expand Down
2 changes: 1 addition & 1 deletion examples/with-angular/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function save()
$result = $user->saveRecursive();

// Capture errors to return via JSON model if we have some
if ( ! $result) $user->errors = $user->errors();
if ( ! $result) $user->errors = $user->getErrors();

return $user;
}
Expand Down
12 changes: 0 additions & 12 deletions examples/with-angular/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ class User extends Vocal
'email' => array('required', 'unique', 'email')
);

/**
* Enable soft deletions for this model
*
* @var bool
*/
protected $softDelete = true;


/*********************************************************************************************
* Relationships
********************************************************************************************/

/**
* Join addresses
*
Expand Down
12 changes: 0 additions & 12 deletions examples/with-angular/models/UserAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ class UserAddress extends Vocal
'city' => array('required')
);

/**
* Enable soft deletions for this model
*
* @var bool
*/
protected $softDelete = true;


/*********************************************************************************************
* Relationships
********************************************************************************************/

/**
* Join parent record (not really needed)
*
Expand Down
2 changes: 1 addition & 1 deletion examples/without-angular/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function save()
$user = (Input::get('id')) ? User::find(Input::get('id')) : new User;
$result = $user->saveRecursive();

if ( ! $result) return Redirect::back()->withInput()->with('errors', $user->errors());
if ( ! $result) return Redirect::back()->withInput()->with('errors', $user->getErrors());

return View::make('addressbook')->with('user', $user)->with('success', true);
}
Expand Down
12 changes: 0 additions & 12 deletions examples/without-angular/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ class User extends Vocal
'email' => array('required', 'unique', 'email')
);

/**
* Enable soft deletions for this model
*
* @var bool
*/
protected $softDelete = true;


/*********************************************************************************************
* Relationships
********************************************************************************************/

/**
* Join addresses
*
Expand Down
12 changes: 0 additions & 12 deletions examples/without-angular/models/UserAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ class UserAddress extends Vocal
'city' => array('required')
);

/**
* Enable soft deletions for this model
*
* @var bool
*/
protected $softDelete = true;


/*********************************************************************************************
* Relationships
********************************************************************************************/

/**
* Join parent record (not really needed)
*
Expand Down
Loading

0 comments on commit 108902d

Please sign in to comment.