One to Many Laravel5

Hi guys, I'm new at laravel and I need some assistance on One to many relationship. So the problem is: I have two table Objects and Units. Objects: id, name, type. Units: i...

Elixir watch not outputting files

When running gulp watch for the first time, my sass files compile properly, but on subsequent update using watch, the console indicate the compilation has occu...
Mix
0
5

Any good cart implementations?

I have been using Crinsane/LaravelShoppingCart for quite sometime now. But I am facing some issues with the cart. I am using ajax requests to add to cart and so on. But on...

Having browser issues with Date input

I have a form with a date input: || {!! Form::label('published_at', 'Publish On:') !!} {!! Form::input('date', 'published_at', date('m/d/Y'), ['class' => 'form-co...

Active states

I watched this old lesson from Jeffrey about active states https://laracasts.com/lessons/active...

Help me understanding relationship

Hi I have two tables "users", "course categories" course categories has foreign key of users table named created_user how do i buil...

Min / max on model

Hi all I am trying to get a min and max value on my model like this: public function monthly() { return $this->hasOne('App\PhoneDeals')...

Which refactoring video covered if/elseif/else(or switch) to handler methods or classes?

I was watching a video here not to long ago about refactoring and part of it was talking about changing from if/elseif/else or switch into a handle function and onto a hand...

Getting a many to many to back track

Hi I'm using Laravel 4 I have a section on my site that displays my portfolio, The problem I'm having is that I can't seem to back track. This is how the port...

Best Video/Series for TDD of a full App

I very much need to start this for my work. I'm rewriting our intranet from CI to Laravel 5.1. The biggest problem before was I make a small change here, and I break some...

Can it be done?

Sorry if my question is a bit beginner-ish! We have these tables: daily_plans-> order_items(daily_plan_id,recipe_name_id)-> recipe_names-> recipe(recipe_name_id, i...

Setting up linked folder on homestead to match Envoyer

I am having trouble setting up a linked folder in homestead. I want to mimic the same folder linking that's used on Envoyer, where public/uploads is symlinked to storage/ap...

Laravel5 Twitter Design Architecture [HELP] !!

So i'm new to Laravel coming from a Java background. I am designing a Laravel App for students similar to Twitter. The idea is that students have a timeline for them to mak...

OO Bootcamp

are there solutions to the small assignments (albeit informal) on this course?...

Slider problems on view

I have a slider in my view that has images with data-src attribute as shown below...

sql query retuning null

$top = DB::select(DB::raw('SELECT first_name, surname, time, MIN(timeinmilliseconds) FROM users WHERE team="'.$key.'"')); why would this...

using the amazon aws sdk

guys, I have created a bucket on s3 to save some pdf files, now i am trying to access them with the aws sdk but i keep getting an error, and i just cannot make sense of the...

Eloquent + BLOB

Hello, I wonder if I can check if BLOB column is not null with Eloquent (with a custom attribute that says 'yes' or 'no'). I used to do it with Query Builder but now I want...

Error Querying Relationship Existence

Hi all, I'm trying to use the "has" Eloquent method in my Laravel application, but it's not working for me. So, as described in the docs, here's how...

Designing variant for database entity

I have database design at http://i.stack.imgur.com/Q7t71.png. Item has one to many relationship with Varia...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels