2017 © Pedro Peláez
 

library vocal

Recursive functionality for Eloquent in Laravel 4 and 5

image

sjdaws/vocal

Recursive functionality for Eloquent in Laravel 4 and 5

  • Sunday, March 1, 2015
  • by sjdaws
  • Repository
  • 3 Watchers
  • 48 Stars
  • 8,343 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 25 Versions
  • 13 % Grown

The README.md

Vocal

Build Status License Latest Stable Version, (*1)

Extended functionality for Eloquent in Laravel 4 and 5., (*2)

Some parts of Vocal are based on Ardent for Laravel 4 by Max Ehsan., (*3)

Copyright (c) 2014-2015 Scott Dawson., (*4)

Documentation

, (*5)

What is Vocal

Vocal makes working with nested relationships easier. This is especially helpful if you're displaying multiple models to a user at once, such as a user profile with an address book, and want them to be able to change their name and update their address in one go., (*6)

, (*7)

Installation

The first thing you need to do is add sjdaws/vocal as a requirement to composer.json:, (*8)

{
    "require": {
        "sjdaws/vocal": "2.0.*"
    }
}

Update your packages with composer update and you're ready to go., (*9)

, (*10)

Getting Started

Vocal extends the Eloquent base class, so your models are still fully compatible with Eloquent. Vocal simply intercepts some methods such as validate and save before they're passed to Eloquent., (*11)

To create a new Vocal model, simply make your model class extend the Vocal base class:, (*12)

use Sjdaws\Vocal\Vocal;

class User extends Vocal {}

There is no need to add any Facades or Service Providers., (*13)

, (*14)

Usage

Vocal provides several settings and methods:, (*15)

Variable Access Modifier Type
$allowHydrationFromInput protected boolean
$hashable protected array
$languageFolder protected string
$languageKey protected string
$messages protected array
$rules public array
$validateBeforeSave protected boolean
Method Parameters
create $data, $rules, $messages
forceCreate $data
forceSave $data
forceSaveAndDelete $data
forceSaveRecursive $data
getErrors $filter
getErrorBag
hydrateModel $data
save $data, $rules, $messages
saveAndDelete $data, $rules, $messages
saveRecursive $data, $rules, $messages
timestamp $value
validate $data, $rules, $messages
validateRecursive $data, $rules, $messages

The Versions

01/03 2015

dev-master

9999999-dev

Recursive functionality for Eloquent in Laravel 4 and 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

laravel validation eloquent laravel4 recursive laravel5 hydration

16/02 2015

2.0.0

2.0.0.0

Recursive functionality for Eloquent in Laravel 4 and 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

laravel validation eloquent laravel4 recursive laravel5 hydration

25/01 2015

4.x-dev

4.9999999.9999999.9999999-dev

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

25/01 2015

1.0.1

1.0.1.0

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

06/01 2015

1.0.0

1.0.0.0

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

08/12 2014

0.3.1

0.3.1.0

Extended functionality for Eloquent in Laravel 4.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

08/12 2014

0.2.5

0.2.5.0

Extended functionality for Eloquent in Laravel 4.1+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

27/10 2014

0.2.4

0.2.4.0

Extended functionality for Eloquent in Laravel 4.1+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

19/08 2014

0.2.3

0.2.3.0

Extended functionality for Eloquent in Laravel 4.1+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

19/08 2014

0.2.2

0.2.2.0

Extended functionality for Eloquent in Laravel 4.1+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

10/06 2014

0.2.0

0.2.0.0

Extended functionality for Eloquent in Laravel 4.1+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

14/05 2014

0.1.17

0.1.17.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

13/05 2014

0.1.16

0.1.16.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

09/05 2014

0.1.15

0.1.15.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

09/05 2014

0.1.14

0.1.14.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

18/04 2014

0.1.13

0.1.13.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

17/04 2014

0.1.12

0.1.12.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

16/04 2014

0.1.11

0.1.11.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

15/04 2014

0.1.10

0.1.10.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

15/04 2014

0.1.9

0.1.9.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

14/04 2014

0.1.8

0.1.8.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

12/04 2014

0.1.7

0.1.7.0

Extended functionality for Eloquent in Laravel 4.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

07/04 2014

0.1.6

0.1.6.0

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

06/04 2014

0.1.5

0.1.5.0

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent angularjs activerecord recursive angular hydration

03/04 2014

0.1.4

0.1.4.0

Extended functionality for Eloquent in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Scott Dawson

orm laravel validation eloquent activerecord hydration vocal