Questions tagged [laravel-3]

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.

392 questions
1
vote
1 answer

Passing parameters form link_to_action to controller in laravel 4

I am working with laravel 4 and I have to create links that invoke the methods of the controller passing data to the controller. I chose to use the link_to_action, but failed to work. This is the my HTML…
sircamp
  • 107
  • 2
  • 10
1
vote
1 answer

Laravel 3, mysql or redis down shows blank screen rather than redirecting to 500 error screen

I'm testing my app to make sure in production it handles errors properly, and one such test is if the mysql or redis services it uses are down. I'm looking for it to show the 500 error page, but currently its showing a blank page. I haven't tested…
stilliard
  • 762
  • 8
  • 27
1
vote
1 answer

Nginx path component load a subdomain, sibling projects at Root Folder (Drupal and Laravel)

I've tried already several ways that I've found over the internet but I still didn't manage to work. What I want is, i have a server configuration for the url: www.domain.com where I have installed and configured a Drupal website. I also have a…
1
vote
2 answers

Laravel 3 paginate not formatted correctly with Bootstrap 3

I am trying to paginate data from a database using laravel. My code is as follows: echo ""; $orders=DB::table('customers')->paginate(7); foreach ($orders->results as $order): …
1
vote
2 answers

Why is the whole JSON response data in string type?

I am using Laravel3 Response::eloquent. The result is in JSON format: {"id":"1"}. However I want the result like this: {"id":1} with id as a number, not string type. I use apache and Content-Type is application/json; charset=UTF-8. The problem only…
Jin Wang
  • 27
  • 7
1
vote
1 answer

Laravel 4- Implemeting a the user authetication for SPA "user identity"/"user" identity

I am new to Web-Development and am currently using Laravel 4 Question Should I be using Cookies or Sessions for my user authentication? I will need the site to: Display currently logged in user Behave differently on some pages depending on…
kris kaman
  • 101
  • 1
  • 8
1
vote
2 answers

Laravel Eloquent ORM confusion

I am trying to achieve the following with Eloquent : I want to query my DB, count the amount of rows where status = 'waiting' and 'inprogress', but I'm running into the following problem. If I run the get() and then try to count, I get told I can't…
veksen
  • 6,863
  • 5
  • 20
  • 33
1
vote
1 answer

Laravel 3 Eloquent: Looking for a "where_nested()" example

I have a custom validation rule that is checking the DB for NULL. I need to look for null or empty. HAVE: $query = $this->db()->table($table); ... foreach( $null_columns as $col ) $query->where_null($col); Which results in…
mOrloff
  • 2,547
  • 4
  • 29
  • 48
1
vote
1 answer

Laravel object data overwritten?

I've got an application built in Laravel 3 and I've run into a very strange bug. I have a model with two datetime fields: start_time and end_time. I also have the timestamps enabled for this model so there are also created_at and updated_at datetime…
David Myers
  • 799
  • 1
  • 9
  • 18
1
vote
2 answers

Facebook App - Ajax request cancelled

Mates, I'm developing a facebook app. It turns out that when I run it via my server's url, it works fine. But, when I run it on facebook, if I check the network requests, the request that tries to save info is somehow cancelled. This is my server's…
Pablo
  • 1,173
  • 4
  • 18
  • 46
1
vote
0 answers

Url ending in :82 laravel 3

i made a website in laraver 3 a year ago, now i am trying to move it to another host but i am having a problem with the URL::base() Its giving a :82 at end of the url, for example my domain is www.Domain.com and when i try to redirect to a route it…
Chachoo Aguirre
  • 474
  • 1
  • 7
  • 19
1
vote
1 answer

Laravel updating database route

I'm trying to update a column in my database with a total of votes on a project. I'm having a 404 problem but I don't see the problem in my route. (PS: Laravel 3) This is my Vote button on every project : {{ Form::open('project/addvote', 'VOTE')…
Felix4
  • 185
  • 4
  • 10
1
vote
1 answer

How to switch between layouts in laravel?

I'm trying to make a website that has 2 or more layouts, any user can change his/her layout. I know we can use layouts in controllers like this public $layout = 'layouts.default'; ... and in method $this->layout->nest('content', $view,…
Pars
  • 4,932
  • 10
  • 50
  • 88
1
vote
1 answer

PHP Syntax Explanation for "and" keyword

I was looking at the Laravel 3 source code, and I saw a weird syntax in the larave/section.php file: ob_start() and static::$last[] = $section; What is this weird assignment syntax? How do you read it? Does it mean that we're assining $section to…
Samer
  • 973
  • 1
  • 6
  • 15
1
vote
0 answers

How can you access a controller that is 3 layers deep in Laravel 3?

So it seems like this is a routing issue, but I cannot access my controller from another controller. Here is my controller…