working on form builder.
refactoring the form builder.
Merge branch 'master' into forms
Make Input::json() more logical

Now you can send JSON payloads as an actual body in a PUT or POST request, instead of only decoding a specific POST param, or whatever it was doing before.




Also, if a non-JSON mime-type is sent it will refuse to try and parse the data, instead only returning the default value. This to me seems like a much more logical usage of Input::json() than the initial implementation.
Cache JSON to avoid re-parsing on every usage.
ACTUALLY do some caching this time.
Update src/Illuminate/Routing/UrlGenerator.php

This allows properly formatted path parameters to be used (those beginning with a trailing slash; e.g. "/path/to/page" & the root "/"), without breaking past compatibility by still allowing ("path/to/page"). These path parameters are used in methods such as URL::to('/page'), Redirect::to('/page'), etc.

Also, because of how this change is done, this fixes an issue where the root path was being output incorrectly by URL::to. URL::to('/') used to output "http://domain.com" (without a trailing slash), but now outputs "http://domain.com/" as it should for the root URL.
Added test assertions to RoutingUrlGeneratorTests.php
Update tests/Routing/RoutingUrlGeneratorTest.php
fixed namespaced-controller routing bug
Fixing bug where Request::has() would throw error because of trying to use trim if the data type was an array
Fixed issue where nestedRelations would think userGroup was a nest relation if we where also eager loading the user relation
Tiny bit of clean up - moved the $tail slash to the return
Extend Str::slug for better result consistency
Fixing bug where Request::has() would throw error because of trying to use trim if the data type was an array
Added support for where('column', null) to generate correct sql.
working on form builder.
convert to json_encoding bodies instead of serializing so we arent so php specific for workers.
Merge branch 'queue-json'
Added View::exists() method to check view existence. Closes #398.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>