Tagged Questions
1
vote
3answers
555 views
Call a controller in Laravel 4
In Laravel 3, you could call a controller using the Controller::call method, like so:
Controller::call('api.items@index', $params);
I looked through the Controller class in L4 and found this method ...
1
vote
2answers
55 views
Laravel 4 Resource Controller NotFoundHttpException
I'm using a resource controller to handle accounts in my website.
This is my route :
Route::group(['before' => 'auth'], function() {
Route::resource('/account', 'AccountController');
});
And ...
0
votes
0answers
25 views
Testing Facebook Login on localhost server with hybridauth using Laravel 4
I am trying to follow the tutorial here to set up a Facebook login:
http://www.mrcasual.com/on/coding/laravel4-package-management-with-composer/#additional_resources
I running my site on a local ...
0
votes
0answers
29 views
Returning data from within a Transaction in Laravel 4
I have the following code snippet which I can't seem to get it working.
$paymentGatewayTransaction = $this->processTransaction($data);
DB::connection('new_db')->transaction(function () use ...
0
votes
0answers
20 views
Laravel alternate routes
This doesn't seem to be working, but I wonder if something similar is possible. I want to use the same controller functions for the user view and admin view, the difference being the url and the the ...
0
votes
1answer
85 views
Laravel Artisan Queues - high cpu usage
I have set up queues in Laravel for my processing scripts.
I am using beanstalkd and supervisord.
There are 6 different tubes for different types of processing.
The issue is that for each tube, ...
0
votes
0answers
15 views
Transactions and Events in Laravel 4
When an Event is fired from within the Laravel's closure transaction function, are the Database operations within the Events also part of the Transaction or are they outside of it?
Snippet 1
...
0
votes
2answers
30 views
How to: make my routes start working with Laravel 4?
I am new in Laravel (v4.0.5) and according the website http://laravel.com/docs/routing and other book I found, make a route its as easy as this
Route::any('foo', function()
{
return 'Hello ...
0
votes
1answer
52 views
How to: pass data from controller to JavaScript in Laravel 4?
I'm developing a mobile web app with Laravel 4 and jQuery Mobile and I have some problems to pass data from Controller to JavaScript file. I find a solution but I think there is a proper way to do ...
1
vote
1answer
47 views
Including PHP files with Laravel framework
I am trying to "include" a php script into one of my views (landing.blade.php).
The script is in:
/laravel-master/public/assets/scripts/config.php
When I try to include this code in the view:
...
0
votes
2answers
49 views
Mocking Eloquent Models with find()
I am trying to Mock Eloquent Model with Mockery. Model is being injected in Controller via __construct(Post $model){$this->model=$model}.
Now I am calling the find() function in controller
$post = ...
0
votes
1answer
13 views
Laravel 4 Commands
EDIT: Figured out where I was going wrong and placed an answer at the end
I'm trying to create a Laravel Command, I can see it's changed considerably from "tasks" in Laravel 3. However I can't seem ...
0
votes
0answers
26 views
[laravel 4 ]Redirect to another controller's method, where do i return the view?
it's about best practices here, my action route to a controller's method :
Route::get('/admin',array('before' => 'auth', 'uses' => 'PostController@create' ));
In PostController@create :
...
1
vote
3answers
41 views
Laravel Eloquent doesn't update only inserting
I am facing some problems with PHP Laravel update function. It doesn't update, only insert.
public function post_rate(){
$o = Input::all();
//has user already rated?!
$query = ...
0
votes
2answers
40 views
Using php scripts on my views in Laravel 4
I am using the Laravel 4 framework, and I am trying to set up the Facebook authentication system. I have an authentication system I had set up on another site (not using a framework) that used a ...