Having trouble defining an eloquent relationship

So I have a feature where people can search up their vehicle and see the products and colors that are available. They select make, model, and year...
02

How can I declare a before filter on a route:resource?

I've tried several things and googled, but only achieved using a group. What I'm looking for is something like: Route::resource('ap...
07

elqoquent one to one weird relationship

I have my posts table: posts: id, user_id, content, image_id and I have my user uploads table:...
08

File uploads with repository and polymorphic relation

Hey, how you would handle file uploads thru a repository with polymorphic relations? I'm stuck and can't get my head around. Some hints? :)...
00

test api with codeception has a weird bug

I'm trying to create tests for my api, and when I do a login I get this weird error: http://i.imgur.com/Wi...
02

Search Results Paginate

This is my little search function. $query = Request::get('q'); if ($query) { $posts = Post::where('titl...
03

Path for Testing an Application

Hey Guys, So here is the story. I have recently finished the major part of converting a page based app (/login.php /register.php etc) into...
01

Promo code for PhpStorm

Is there a Laracasts promo code members can use to buy a PhpStorm licence?...
04

Updating published package assets if source changes

Hello all, Say I have some assets published in a laravel app from an installed package which I also maintain. Is it possible to update thes...
00

Test Failing but app working in Form Validation

Laracasts\Validation\FormValidationException: Validation failed Scenario Steps: 9. I click "Sign Up" THIS IS RED 8. I fill field "Password...
05

Laravel 4.3 LoginRequest error

I'm getting the following error when attempting to authenticate using the new Authentication classes in 4.3. This was working last night, but this...
06

profile pic change

Once creating account i didn't found any option to change profile pic. Nor single/double click on pic work out neither any button to change it...
03

Sorting database values using usort and Sortby(collection method)

I am trying to use usort and sortby to basically after the code below is 1. sort $featureLists by 'feature_sort_order' 2. loop over each $featureLi...
01

4.3 Models and Repositories

Is it still recommended in 4.3 to use Repositories? If so, would we store them in app/Repositories and then have a folder in Rep...
01

Refactoring (Episode 13) in Laravel from Scratch

In this lesson the instructor walks through refactoring to streamline the code, however in doing so the password is no longer hashed when it is sto...
10

Array Steriod lesson

when I type php artisan tinker then show Full REPL not supported. Falling back to simple shell. & Then I type $song = new Songs();...
01

*Posting edited form*

Gist : https://gist.github.com/gupta2205/b33dcf762876e5df34d9 ========...
01

Using a filter in a package

Since Laravel 4.3 is coming I started creating a package in the Dev branch of laravel. Now everything works like a charm the only thing I bumb in t...
05

Forge not detecting environment set to staging

Hello, I've scoured the web for an answer, including this...
08

Rearranging the order of items and post it back after saving form

My post_edit method in AdminPetitionController.php needed to fix first for this task, after getting featured_sort_order how can arrange according t...
01