Laravel 4 is the current version of the open-source PHP web development framework created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.
0
votes
0answers
5 views
Inverse of required_if on Laravel 4 validations
I am trying to create an inverse of the required_if validation and following is the code that I currently have. I am not sure why this is not working.
Validator::extend('required_if_not', function ...
0
votes
0answers
9 views
Laravel 4 - User Repository, methods returns object instead of id
So I set up an API within my Laravel 4 local project using mostly techinques from: http://net.tutsplus.com/tutorials/php/laravel-4-a-start-at-a-restful-api/ as a guide.
I have it successfully ...
0
votes
2answers
13 views
laravel 4 artisan — how to rollback to a specific migration state?
Say i got a.php, b.php, c.php and d.php migration classes files. How to rollback to a specific migration state, the state defined within b.php for example, with artisan command ?
0
votes
1answer
17 views
How to call a controller function in jquery after a button click in Laravel 4
I would like to call a function from a controller to store some data in a database after a button click. Namely, in the javascript (jquery), I have:
$( '.opener' ).click(function() {
FB.ui({
...
0
votes
1answer
21 views
Select single last value (max id) from same table
MySQL "solutions" table:
id (PK) # p_id (FK) # user_id (FK) # name
Data:
id = 1 # p_id = 1 # user_id = 100 # name = A1
id = 2 # p_id = 1 # user_id = 100 # name = A2
id = 3 # p_id = 1 # user_id = ...
1
vote
1answer
14 views
Natural ORDER in Eloquent ORM, Laravel 4
How can i get 'natural order' in 'Eloquent ORM'? In table I have column 'text' (string).
Normal order: Model::orderBy('text')
'value 1'
'value 12'
'value 23'
'value 3'
'value 8'
I need this:
...
0
votes
1answer
18 views
Artisan db:seed (Laravel 4) receiving error on mediatemple gridserver even though php version is 5.5.0
I have a few seed files that make use of arrays that use the convention:
Array = [ ];
The array uses brackets instead of parentheses.
I have checked my php version using a phpinfo.php file, ...
0
votes
1answer
19 views
Laravel class not being compiled on first run
I used the tutorial posted on Net Tuts+ (http://hub.tutsplus.com/tutorials/combining-laravel-4-and-backbone--net-31745) and implemented the Error handling as instructed.
In the composer autoload ...
0
votes
1answer
26 views
Larvel 4: pointing a form to a controller function
I can't understand, how to set up the Form action to direct to a function of a specific controller.
This is my blade code:
{{ Form::open(array('route'=>'user.search')) }}
But I get this error ...
0
votes
1answer
34 views
Laravel 4: undefined variable error when submitting data from the view
I'm trying building a timer app - this form should submit the time (which it does) AND the client name as populated from the database, it looks like this:
{{ Form::open(array('action' => ...
0
votes
0answers
8 views
How to use multiselect in codeception and laravel
Is it possible to use multiselect boxes on Codeception?
My form code:
<form accept-charset="utf-8" class="form-vertical" id="solicitor-form" method="POST" action="http://mytest.dev/role">
...
0
votes
1answer
22 views
Laravel 4: named routes in named groups
Is there a way to make something like this?
Route::group(array('as' => 'admin', 'prefix' => 'admin', 'before' => 'admin'), function()
{
Route::get('/', array('as' => 'home', 'uses' ...
1
vote
1answer
26 views
Can Delayed Queues in Laravel be used as an alternative to CRON jobs
Laravel 4 has a great list of features in terms of Queues. This question is with respect to the Queue method Queue.later() API Documentation the first parameter being the delay.
A Cron is basically ...
0
votes
1answer
15 views
Getting raw SQL performed by laravel 4 migrations
I'm working in an environment where rather than deploying changes directly to the clients servers I have to generate a build tarball with a changelist from an SVN revision and send it over to their ...
1
vote
1answer
13 views
How to include custom config for different environment in Laravel-4
$env = $app->detectEnvironment(array(
'local' => array('*.local'),
));
The original config files can be used in my local environment like the database.php, cache.php etc. But my custom ...