Laravel 3 is the outdated version of the open-source framework for PHP web development created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.
Questions tagged [laravel-3]
392 questions
2
votes
2 answers
How can I fetch this info in laravel Eloquent
Sorry for the question title but I can't really find an suitible title.
I use Laravel 3 with Eloquent models (first project in Laravel).
I have an user, list and item model. The user can't fetch any lists, the list can fetch items. But the user can…

Sven van Zoelen
- 6,989
- 5
- 37
- 48
2
votes
2 answers
Sessions not holding on AppFog / Laravel 3
Im not sure what could be causing this,
But my project has been working fine in development.
But when I uploaded it to AppFog, suddenly my sessions/Auth() wont hold.
Authentication works to login.
So a user can login, and will be redirected to their…

Kylie
- 11,421
- 11
- 47
- 78
2
votes
4 answers
How to handle undefined variables and arrays in a good practice way on Laravel
Sometimes I get an exception just because the supply for foreach tag doesn't contain an array.
Like;
//controller
->with('array', Something::all());
//view
@foreach ($array as $k => $v)
{{ $v }}
@endforeach
If Something::all() returns null…

Aristona
- 8,611
- 9
- 54
- 80
2
votes
2 answers
How can I write a fluent query for full text search?
I need to write a fluent query for full text search in Laravel 3.0. The search query goes like this
SELECT * FROM posts WHERE MATCH (tags) AGAINST ('Lorem Ipsum Dolor Sit Amet');
I had been using Raw query to perform this operation but the results…

aayush shrestha
- 1,858
- 2
- 17
- 33
2
votes
1 answer
How to add functions in Bootstrap modal - Laravel
I'm currently developing a system with Laravel framework. Though, I'm not very familiar with MVC architecture yet.
When I'm developing the system, I come across a problem which relates with this bootstrap modal that has a form in it. I'd like to put…

emen
- 6,050
- 11
- 57
- 94
2
votes
1 answer
My Laravel App doesn't work on Facebook
My Laravel App doesn't work on Facebook, seems like it gets confused on the routes.
This is my routes.php:
Route::get('ingresar', array('as' => 'ingresar', 'uses' => 'ingresar@index'));
This is my controller ingresar.php:
class Ingresar_Controller…

user2426119
- 21
- 1
2
votes
2 answers
Shared folder permissions in Vagrant 1.1.5
Trying to set up a little Vagrant development environment right now using the Laravel framework and need to make my /vagrant/storage/views folder writeable, but I cannot get the permissions on the folder to change no matter what!
I have done:
sudo…

ARW
- 3,306
- 7
- 32
- 41
2
votes
2 answers
Laravel relationship problems
I've got 4 tables:
My relationships should work like this:
Items can only have one size, color and category.
This should be working but it's really not. The query generated returns wrong results.
Here are my model files:

peaks
- 167
- 2
- 11
2
votes
2 answers
Laravel Migrations - Table Prefix Issue
I'm building a dummy site to test Laravel 3.x.
I'm creating my site migrations right now. Everything was doing just fine until the following error showed up:
SQLSTATE[42s02]: Base table or view not found: 1146 Table…

darksoulsong
- 13,988
- 14
- 47
- 90
2
votes
1 answer
How can I reuse some laravel code?
I am developing web application using the laravel. I would like to 'package' some of the functions, which is re-usable. For example, I got a UserController, with database setup, and view, etc. The UserController is expected to re-use in most of the…

DNB5brims
- 29,344
- 50
- 131
- 195
2
votes
2 answers
Class 'User' not found in Laravel
I keep getting
Unhandled Exception
Message:
Class 'User' not found
Location:
C:\wamp\www\laravel\laravel\auth\drivers\eloquent.php on line 70
When I'm logging in a user. I don't think there's any problem in eloquent.php. Please take a look at my…

emen
- 6,050
- 11
- 57
- 94
2
votes
1 answer
How to pass variables to another controller in Laravel
I have a product controller and a header controller. When loading the product controller, I use Route::forward() to load my header controller.
return View::make('frontend.catalogue.product.view')
->with('head', Route::forward("GET",…

Adam Nicholson
- 320
- 3
- 10
2
votes
2 answers
Laravel 3 HTTP and HTTPS routes
I have the following code:
Route::get('/', function()
{
return 'non secure page';
});
Route::get('/', array('https' => true, function()
{
return 'secure page';
}));
What I expected to happen is that these two routes would be treated…

GWed
- 15,167
- 5
- 62
- 99
2
votes
2 answers
Laravel redirect with no cache header
I'm using Laravel 3 and it's not obvious how to set headers in any way other than through Response::make().
I am doing a redirect like this:
return Redirect::to('admin/check');
I'd like to set an additional no-cache header for the redirect like…

John Mellor
- 2,351
- 8
- 45
- 79
2
votes
2 answers
Laravel css/js gives 404 but the files exist
I'm working in a admin bundle but the css/js is not working.
http://d.pr/i/UJHo
From the print, bootstrap js/css came from external domain, I tried to call a local bundle file but I got the error.
My htaccess is unchanged from original laravel:…

Lucas Serafim
- 3,702
- 6
- 30
- 36