Top "Laravel-4" questions

Laravel 4.2 is the previous version of the open-source PHP web development MVC framework created by Taylor Otwell.

Check if belongsToMany relation exists - Laravel

Two of my tables (clients and products) have a ManyToMany relation using Laravel's blongToMany and a pivot table. Now I …

php laravel laravel-4
Using Carbon to return a human readable datetime difference

I'm using Laravel 4 to create my project. I am currently building the comments section and I want to display how …

php laravel laravel-4 php-carbon
Running one specific Laravel migration (single file)

I don't want to run All Outstanding Migrations on laravel 4. I have 5 migrations. Now I just want to run one …

migration laravel laravel-4
How to echo a default value if value not set blade

I would like to know what would be the best way to display a default value if the given value …

laravel laravel-4 laravel-5 blade templating
How do I set up phpMyAdmin on a Laravel Homestead box?

I installed it by running sudo apt-get install phpymyadmin and then running sudo ln -s /usr/share/phpmyadmin/ /usr/share/…

nginx laravel laravel-4 phpmyadmin
Eloquent column list by key with array as values?

So I can do this with Eloquent: $roles = DB::table('roles')->lists('title', 'name'); But is there a …

php laravel laravel-4 eloquent
Laravel change input value

In laravel, we can get the input value via Input::get('inputname'). I try to change the value by doing …

php input laravel-4
Laravel htaccess

I've setup a new install of Laravel on my local. It appears there are issues with htaccess or Apache settings. …

.htaccess laravel-4 laravel-routing
Laravel. Use scope() in models with relation

I have two related models: Category and Post. The Post model has a published scope (method scopePublished()). When I try …

laravel laravel-4 eloquent
Install dependency (doctrine/dbal) on composer laravel

I am trying to execute a migration to rename some columns and I got an exception. As I read on …

php laravel laravel-4 composer-php