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
6 answers

Laravel redirect::route is showing a message between page loads

I'm currently developing a web app using Laravel, and the app was working perfectly fine until recently. I had no idea what triggered it but here's a summary of the issue I'm having: Logging in used to work as I have an AccountController that does…
Zhia Chong
  • 51
  • 1
  • 3
5
votes
1 answer

How to handle User Registration via API Laravel

I have being reading and watching some tutorials about API development in Laravel. I am new to API development entirely although I have used Laravel a bit. From all the tutorials I have gone through, they handled: login, get some data, update…
Diamond
  • 608
  • 7
  • 23
5
votes
3 answers

Laravel : Your requirements could not be resolved to an installable set of packages

I am trying to install Laravel in local system and i am getting error. OS : ubuntu 12.04 LTS Webserver : Nginx PHP : PHP 5.3.10 step 1 : $ git clone https://github.com/laravel/laravel.git my_project step2 : my_project$ composer install I am…
Parnit Das
  • 361
  • 3
  • 7
  • 20
5
votes
2 answers

Laravel float variable changing value when adding to database

Theory I have quite a comprehensive coordinates list (Latitude and Longitude to 7 decimal places), which I want to continually add to. In order to stop data duplication, for each coordinate that's trying to be be inputted, I want to check the…
user860511
5
votes
1 answer

Laravel 4 Artisan drop existing column from table

I created a migration script that creates a table called Archives. It has 4 columns not including timestamps/increments. The tables columns are name, title, content and image. I need to drop the image column as it is no longer needed. I have not…
CharliePrynn
  • 3,034
  • 5
  • 40
  • 68
5
votes
3 answers

how to use paginator::make() in laravel to show resultset in view?

I have used Paginator::make to paginate the records in the table. In the view, I am getting the pagination links, but every link has all the records in it. How to restrict it to perPage items? $datas = Paginator::make($paginator,…
uma
  • 493
  • 2
  • 10
  • 24
5
votes
1 answer

Laravel 4: Getter and Setter Methods

I tried to get Getter & Setter Methods work (from Laravel 3 in Laravel 4) but display Error. is there any work around here? they are very useful in password case: public function set_password($password) { $this->set_attribute('hashed_password',…
mwafi
  • 3,946
  • 8
  • 56
  • 83
5
votes
3 answers

Laravel: Testing routes with custom request headers

So the question is simple: How to send custom request header, when I testing with Laravel? I'm trying to make like so: $this->call('POST', '/my/route', ['params' => 'array'], [], ['X-Custom' => 'header']); But when I call…
MrSil
  • 608
  • 6
  • 12
5
votes
1 answer

laravel4 response very slow and take much time to load

I did a lot of search and no solution worked for me. Firstly, I have two projects on the same server, one using CodeIgniter and the other using Laravel. The one which uses Laravel occasionally loads very slow This image shows empty page written…
Samy Massoud
  • 4,295
  • 2
  • 35
  • 48
5
votes
3 answers

How to convert my PHP array to a Javascript array in laravel 4

in my controller i have an array which i have populated from my database and stored which looks like this and is called dataset2 array(2) { ["April"]=> int(92) ["May"]=> int(86) } In my view i can dd{{}} on the array and see…
Mike
  • 169
  • 2
  • 12
5
votes
1 answer

Create migration from existing database in Laravel 4

Is it possible to create a migration in Laravel 4 from an existing database?
jeanfrg
  • 2,366
  • 2
  • 29
  • 40
5
votes
1 answer

How make a callback with PHP/JQuery/JSONP dynamic (Laravel project)

Right now I am working on a widget that I want certain people to put on their sites that will send info to them and get some info back. Right now, I am having them use the following in their code:
user1072337
  • 12,615
  • 37
  • 116
  • 195
5
votes
2 answers

Get MySQL table columns using Eloquent in Laravel

How would I get inside of a custom model the columns for a specific MySQL table using Eloquent in Laravel I was trying DB::query("SHOW COLUMNS FROM " . $table) but without any success
fefe
  • 8,755
  • 27
  • 104
  • 180
5
votes
2 answers

Arguement passed to constructor must be an instance of interface, instance of decorator given

I am having an issue trying to debug my code, as far as I can see looking at the various bits of code, it all links up correctly, but there must be something obvious I am missing here. I am sorry about the amount of code I've pasted in to the…
Mortelugo
  • 73
  • 1
  • 4
1 2 3
99
100