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
8
votes
4 answers

Why would Laravel Sessions fail in just Safari and IE after switching server?

New VPS server with Webmin, Apache Centos 6, Laravel application and old database schema. All working fine on old shared host, but on VPS for some reason Laravel's Session storage (Laravel 3.0) is no longer working on Safari or Internet Explorer.…
Browno
  • 81
  • 1
  • 4
8
votes
5 answers

Why don't large files download easily in Laravel?

My file (126 MB size, .exe) is giving me issues. I'm using the standard laravel download method. I tried increasing the memory but it still either says I have run out of memory, or I download a 0 KB size file. The documentation doesn't mention…
Lango
  • 2,995
  • 5
  • 26
  • 27
8
votes
1 answer

Laravel Model Eager loading and ordering

I'm new to Laravel and thought it be cool to purchase the Codehappy ebook by Dayle Rees. I just finished the blog tutorial and thought a bit on how he retrieved the posts from the Post model. Coming from a .net (ASP.NET MVC) background I think it…
RaVen
  • 775
  • 2
  • 8
  • 21
7
votes
3 answers

How to show Validation message in Controller?

I have tried showing an error message in a Controller and it doesn't work, but when I use dd, it works. My Code: if ($validation->fails()) { /*Doesn't work foreach ($validation->fails() as $messages) { $messages // Doesn't work …
7
votes
1 answer

Laravel: Use complex condition in JOIN with Fluent

For reasons of a complex schema & a library that requires either Fluent or Eloquent to be used (not just raw DB::query() ), I need to create: LEFT JOIN `camp_to_cabin` ON `camper_to_cabin`.`cabin_id` = `camp_to_cabin`.`cabin_id` AND…
jmadsen
  • 3,635
  • 2
  • 33
  • 49
7
votes
1 answer

Laravel - Unknown column in field list

Mates, I'm havin a problem to save a record to the database. As I understand the error, it seems as it doesn't exist an 'id_purchase' in the table. But it does. The code I'm using is the following:
Pablo
  • 1,173
  • 4
  • 18
  • 46
7
votes
2 answers

Best way to handle dynamic amount of form fields in PHP?

I have a system where I need to list an arbitrary amount of employees with a textfield for each day of the week where an "hours worked" value can be entered. So I need to generate a table with a dynamic number of rows, and each row is going to…
ARW
  • 3,306
  • 7
  • 32
  • 41
7
votes
2 answers

Laravel: Form validation string-length error messages cause exception

When trying to implement Laravel's length based validation 'password' => array( 'required', 'alpha_dash', 'Min:7' ) and outputting error messages in my view {{ $errors->first( 'password', '
domwrap
  • 443
  • 1
  • 4
  • 12
7
votes
2 answers

developing Laravel 3 and laravel 4

Does application build on Laravel 3 work on Laravel 4? In few days ago I found Laravel and now I try to learn it. Am I losing time learning Laravel 3 when Laravel 4 is coming? Is this a same with some addons in LV4? And would my application build in…
mrakodol
  • 1,143
  • 3
  • 12
  • 41
7
votes
4 answers

PHP Laravel Routing Issue

My setup currently looks like this application/controllers/register.php class register_Controller extends Base_Controller { public $restful = true; public function get_index() { return View::make('main.register');; …
wonton
  • 7,568
  • 9
  • 56
  • 93
6
votes
6 answers

How I Prevent Browser's Back Button Login After Logout

My problem is i can logout properly after i click to logout link but if i click to back button of the browser, still able to see the content of the page which actually should not be seen with respect to my auth middleware process. I read i can…
Diksha
  • 157
  • 2
  • 3
  • 9
6
votes
1 answer

Laravel - Query "with"

I have a query where I need to get info from 2 tables. So I need to get invoices with the invoice_status 1, where the user_status is 1. I though I could query the Invoices table with the users table. When I dd($invoices) I do get the invoice with…
Northify
  • 351
  • 2
  • 5
  • 21
6
votes
2 answers

Laravel - Add trailing slash with Redirect::route()

I'm trying to add a slash to the end of the URL after I use Redirect::route() with Laravel. I've tried numerous examples but couldnt find an answer. This is what I have so far: routes.php: Route::get('/', function() { return…
user3685965
  • 61
  • 1
  • 3
6
votes
1 answer

Cannot catch PDOException in laravel 3

I'm trying to catch a PDOException in laravel 3 but it seems as if I cannot do this. My code is as follows: try{ DB::connection()->pdo->beginTransaction(); Myobject::create($cleaned_input_array); // do other stuff that could possibly…
WildBill
  • 9,143
  • 15
  • 63
  • 87
6
votes
4 answers

Export whole table to CSV using laravel

I am new to laravel and having a tough time figuring out a way to export one table to csv. I have tried the following code in the controller class, but it gives me an error: public function get_export() { $table = Cpmreport::all(); $file…
Anuj
  • 63
  • 1
  • 1
  • 4
1 2
3
26 27