Questions tagged [laravel-4]

Laravel 4.2 is the previous version of the open-source PHP web development MVC framework created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.

Laravel 4.2 is the previous version of the open-source for web development created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.

New Features Overview

  • All pieces have been decoupled into independent components, collectively called Illuminate
  • integration
  • Driver-based view system
  • Better integration with cloud storage
  • collections

Resources

See also the tag for general laravel based questions, from past versions.

Social Media

14441 questions
5
votes
2 answers

Decode laravel 4 Input::json()

I am having a hard time decoding json input in laravel .. am building a Restful API and when i send post data using RestClient and then die and dump in laravel i got object(Symfony\Component\HttpFoundation\ParameterBag)#205 (1) { …
sh0umik
  • 1,549
  • 2
  • 17
  • 27
5
votes
4 answers

Laravel - 500 Internal Server Error

I'm running my laravel site in my localhost, works fine. But when I try run my site in hosting server, I got 500 internal server error? Is it because of my .htaccess file or I remove public url ? My .htaccess file
Nurdin
  • 23,382
  • 43
  • 130
  • 308
5
votes
3 answers

nginx - laravel - hhvm-Fastcgi get error 500

I install a LEMP server in ubuntu 12.04 LTS 64 whit HHVM Fastcgi Service and i install laravel via laravel.phar ( and test via composer too ) when in get my site in brwoser do not display any error but in chrome developer console get error 500 i…
Mohammad
  • 652
  • 1
  • 7
  • 18
5
votes
2 answers

Get ID from Laravel eloquent query through a relationship

A company hasMany users, this relationship is achieved through a pivot table. I want to be able to get the company.ID of the company an individual user is related to: $company_id = User::find(Auth()->$id)->companies->get('$id'); Unfortunately, I…
user860511
5
votes
1 answer

Laravel 4 how check if a route only comes/redirected from another route?

Say i have localhost/public/admin that redirects immediately to localhost/public/user/login. How am I going to get the admin value in user/login?
user2002495
  • 2,126
  • 8
  • 31
  • 61
5
votes
1 answer

Many to Many join Laravel Eloquent

I'm using Laravel 4.1 and i want to make a join with Eloquent: So I have 3 table as: Table 1 (pools): id, name Table 2 (contribution): id, amount, pool_id, contributer_id Table 3 (contributers): id, last_name By the way i have 3 models : Pool,…
Nabil Lemsieh
  • 716
  • 4
  • 11
  • 27
5
votes
3 answers

active links in laravel 4

in my master.blade.php file I have a navigation which Im trying to put together.
5
votes
1 answer

laravel passing errors to views through controllers

I am trying to validate in an action within my controller. once it fails, I send the messages resulting from the validator to the other function in the same controller to pass it to the view. The only problem is I don't see anything displaying in…
spacemonkey
  • 2,530
  • 6
  • 23
  • 27
5
votes
1 answer

Laravel artisan cron not working

I have got a page which queues up emails in beanstalked. The script works as intended, the emails get fired when i have a queue listener, ie. php artisan queue:listen But when i remove the listener and add it to the crob job * * * * * /usr/bin/php…
Swaraj Giri
  • 4,007
  • 2
  • 27
  • 44
5
votes
1 answer

How to not use encrypted cookies in laravel?

I've upgraded Laravel from 4.0 to 4.1. My application sets Cookies, which I also use in javascript. Now they get automatically encrypted, thus not readable anymore in javascript. I can't find how to disable the encryption for particular cookies When…
Ernie
  • 972
  • 1
  • 10
  • 23
5
votes
3 answers

Laravel 4.1 mail queueing with beanstalkd driver - "Insufficient data for unserializing"

I'm working on my first Laravel app, and hit an odd problem when trying to queue up email sending using Mail::queue to send emails. I was originally using the sync driver and everything worked fine, however having now switched over to the beanstalkd…
Jonathan Ellis
  • 5,221
  • 2
  • 36
  • 53
5
votes
3 answers

How do you change the page name for Paginator?

Current Paginator is using ?page=N, but I want to use something else. How can I change so it's ?sida=N instead? I've looked at Illuminate\Pagination\Environment and there is a method (setPageName()) there to change it (I assume), but how do you use…
Marwelln
  • 28,492
  • 21
  • 93
  • 117
5
votes
4 answers

Form::file: How to repopulate with Input::old After Validation Errors and/or on Update?

In my PhotosController, I am trying to modify the edit action so that it shows the existing value in the Form::file() input field (and, so that it repopulates the field if validation fails). if ($validation->passes()) { // saves the image…
DroBuddy
  • 303
  • 1
  • 6
  • 16
5
votes
2 answers

How to install PHPunit in a Laravel project

I'm trying to set up PHPunit in a Laravel project (which is being running in a Linux VM using Vagrant and VirtualBox). I've added PHPunit to composer.json and run composer install and composer update, and yet nothing is working. Running phpunit…
iconoclast
  • 21,213
  • 15
  • 102
  • 138
5
votes
1 answer

using two different models and tables for auth system at laravel 4?

I have the application which have 2 Auth system. there is : User and Company. is there a way to make an single Auth System for that's different models, without using any package (auth) ?
antoniputra
  • 4,251
  • 6
  • 26
  • 31
1 2 3
99
100