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
0
votes
1 answer
Laravel 3 Eloquent ORM usage
I have the following code which works but doesn't seem to follow the laravel eloquent way:
Article::left_join('images', 'articles.id', '=', 'images.article_id')
->join('article_category', 'articles.id', '=',…

user1781543
- 133
- 1
- 1
- 5
0
votes
1 answer
Moving Laravel outside of docroot gives me problems with php's chdir() and path('sys')
I've been using Laravel 3 on a live website for a while, and decided to move the app to outside of docroot, delete the public_html folder, and symlink the public folder to the public_html one. I followed solution 1 here.
Having done that, my site…

BenjaminRH
- 11,974
- 7
- 49
- 76
0
votes
1 answer
Laravel - Working with multiple records, how do I pull the data I need?
WARNING:: LARAVEL SUPER-BEGINNER, BE GENTLE::
In my controller:
public function get_index(){
$lease_rates = DB::table('lease_rates');
$this->layout->nest('content','admin.lease_rates', array('lease_rates' => $lease_rates, ));
In my lease_rates…

David Peck
- 27
- 1
- 9
0
votes
1 answer
Laravel 3: with_input() not saving input
I have a Laravel form that gets passed through some validation. Obviously, if the validation fails, I'd like the user to be redirected to form and alerted of their mistake. Also, because the form is fairly large, I don't want the user to have to…

Andrew De Forest
- 6,829
- 14
- 39
- 50
0
votes
1 answer
Using Laravel bundle with CodeIgniter
I want to use Laravel Bootstrapper bundle http://bundles.laravel.com/bundle/bootstrapper with my CodeIgniter application.
How can i utilize autoloader functionality to use Bootstrapper bundle code in CodeIgniter in native PHP 5…

Ehs4n
- 762
- 1
- 8
- 24
0
votes
1 answer
Decrement function, decrement all the rows in the tables
Im using laravel v3.2.12-4, and I have an problem with the decrement function. Instead of update only one row, this method affects all the rows in the column. Im using Eloquent, and I have a many_to_many relationship.
The code that constains the…

Rodrigo Gauzmanf
- 2,517
- 1
- 23
- 26
0
votes
1 answer
mod_rewrite remove trailing slash not working in Laravel
I have the following code setup in my htaccess file for my Laravel 3 installation:
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
# Enforce www
RewriteCond…

Nicekiwi
- 4,567
- 11
- 49
- 88
0
votes
2 answers
Laravel Section not appear
I'll follow some tutorials about Laravel 3, and know, I have a problem, with one:
@section('post_navigation')
@if(Auth::check())
@include('plugins.loggedin_postnav')
@endif
@endsection
Why this section not appear?
I try remove all content in…

Patrick Maciel
- 4,874
- 8
- 40
- 80
0
votes
3 answers
Working locally, can't connect in Laravel to remote DB
I'm trying to work locally in Laravel and am having trouble connecting to a remote database. I've used my domain name (domain.org) as my host, and then password, username and database name as normal. But I get this error:
PDO::__construct():…

sehummel
- 5,476
- 24
- 90
- 137
-1
votes
1 answer
Laravel 3 Eloquent ORM for 3 level relation & filter
I had 3 models:
model A:
class A extends \Eloquent {
...
public function Bs() {
return $this->belongsTo('B','B_id','id');
}
public function Xs() {
return $this->belongsTo('X','X_id','id');
}
public function…

Deep Patel
- 13
- 7
-1
votes
1 answer
How do I bind multiple models to a form?
How do I bind multiple models to a form? For example, I have an order and order details section on a form and I want to bind a separate model to the order details fields..

user3784836
- 59
- 1
- 2
- 9
-1
votes
1 answer
End of script output before headers: index.php - composer, noherczeg_breadcrumb, laravel
I can't get to work composer package https://github.com/noherczeg/breadcrumb on shared 111webhost hosting, my app is written in laravel 3.
I installed composer using this bundle:
https://github.com/benedmunds/Laravel-Composer
I get this error:
End…

idelix
- 135
- 3
- 14
-1
votes
1 answer
laravel 3 - (:any) route not working
i am just starting to learn laravel. And found a small sample project from nettuts+ ( url shortner ). it works well but only problem i face is that (:any) route doesn't work.
Here are three routes i have in file.
Route::get('/', function()
{
…

Riz
- 6,746
- 16
- 67
- 89
-1
votes
1 answer
Laravel go though 3 tables
I am trying to get it working in php laravel to get data from 2 tables.
§1. I need to get all "videos" (the table) that also is in the table "categories_in_videos" as "video_id" and print out the "category_id" also in that query.
Table videos:
…

kim larsen
- 5,111
- 6
- 19
- 17
-1
votes
1 answer
Using restful in which application?
How can task accomplished with the verb restful in Laravel, What is basic function ?

VaqasUddin
- 188
- 2
- 7