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
6
votes
1 answer
Eloquent best practice for key/value pair type table
My application is a CMS intended for websites for businesses. I have a table called business_info that looks like this:
id | field | value
-----------------------------------------
1 | name | Testing Company
2 | official name |…

Yev
- 2,051
- 9
- 27
- 46
6
votes
1 answer
Using route filters in Laravel
I'm trying to use route filters in laravel to check whether a specific user has an access to a page:
Route::filter('check_roles', function()
{
$current_url = URI::current();
$access = 0;
$nav = Session::get('navigation');
…

user225269
- 10,743
- 69
- 174
- 251
6
votes
2 answers
Fatal Error While Running Artisan (Laravel) on Command Line
I am experiencing a fatal error while using artisan on the (fantastic) Laravel PHP framework.
I recently downloaded v3.2.1 of Laravel, and I tried running the following command line from within the directory that artisan resides:
php artisan…

Graham Kennedy
- 736
- 6
- 18
5
votes
2 answers
Trying to send input file data over AJAX, can't access the data in my controller
I'm using Laravel 3, and I am AJAXing in a user comment. We are adding images to this comment and I can't seem to get the File Data to go through. When I set processData to false, I am also unable to access the other data such as the comment and…

coryj
- 1,255
- 3
- 14
- 29
5
votes
2 answers
Laravel - call_user_func_array() expects parameter 1 to be a valid callback
I'm getting this error:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Symfony\Component\HttpFoundation\LaravelRequest' does not have a method 'url'
The code I'm using is:
routes.php:

Pablo
- 1,173
- 4
- 18
- 46
5
votes
1 answer
Adding a DATETIME column via a migration? Should I use macros?
In Laravel 4 there's a dateTime() function that helps in creating these columns. But in Schema\Table in Laravel 3, I only see a date() function, which is:
public function date($name)
{
return $this->column(__FUNCTION__,…

Aditya M P
- 5,127
- 7
- 41
- 72
5
votes
2 answers
Laravel: Passing data to default.blade.php from base controller
I have a base controller with a method to return a twitter feed to my view.
I want to move this in the view from the page view to the default blade to reduce redundancy as it will be appearing site wide. How do I pass data from the base controller…

Fraser
- 14,036
- 22
- 73
- 118
5
votes
5 answers
Use automatic controller routes in Laravel is a bad idea
I'm coming From CodeIgniter to Laravel.
So, is a bad idea using automatic routes to all of controllers?
Route::controller(Controller::detect());
Should I use this instead creating routes in routes.php?

Leabdalla
- 656
- 9
- 19
5
votes
1 answer
Laravel (3) Pagination Sorting & Filtering
I have a list of all the "servers" in my "servers" table returned in my view with pagination. I have been struggling to figure out how to get sorting (asc & desc if possible) and filtering (searching within results) working.
Here is my controller…

MCG
- 583
- 4
- 8
- 18
5
votes
3 answers
Should I include underscore in session cookie name?
I'm curious if there is anyone using Laravel since version 3 running into problems setting cookies in various version of IE when there is an underscore in the cookie name.
I came across this problem with my project (an eCommerce site built on CI).…

Edwin Aw
- 130
- 1
- 7
5
votes
4 answers
Artisan: Could not find driver
I'm using Laravel last version: 3.2.1.
When I run this on terminal:
php artisan migration:install
I have this error:
could not find driver
I made some searches on Google and on Laravel's Forum, nothing.
EDIT
I have activated the extension and this…
user745235
4
votes
1 answer
Laravel Blade using if condition inside foreach
here is my code ..
@foreach (Session::get('show_my_data') as $key1 => $value1)

Friend
- 1,326
- 11
- 38
- 62
4
votes
2 answers
Laravel-4 cron jobs
I need to learn how to work with cron jobs in Laravel..As I can see the documentation does not specify this part.I have found a tutorial but it is about Laravel-3. Can you give me some advice on how to schedule a cron job running once a day..?Is…

John
- 339
- 2
- 7
- 17
4
votes
2 answers
Is there an upgrade guide from Laravel 3 to Laravel 4?
I've got a webpage written in L3 and I feel that it's on time to move it forward to L4. So I'm searching for a howto-guide telling me the porting process. In which folders my old files belonges now into and which parts of code have to be rewritten,…

Hexodus
- 12,361
- 6
- 53
- 72
4
votes
2 answers
How to generate a chart using Laravel?
I'm working with Laravel 3. I want to make a reporting page on the website.
I have some view table as per below:
+---------+-----------------+-------+
| user_id | username | total |
+---------+-----------------+-------+
| 1 | user …

syamimi
- 183
- 2
- 2
- 9