Support the ongoing development of Laravel.io →
meigwilym

meigwilym

Joined 5 Feb 2014

Statistics

Threads 5
Replies 34
Solutions 5
Articles 0
posted 10 years ago

Blog Post on Laravel Relations

If this is not allowed then please delete and accept my apolgies I decided to take a good hard look...

0 Likes
0 Replies

What's returned by Auth::user() ?

I'm trying to make changes to the user record. I expect a User Eloquent model when I call Auth::user...

0 Likes
3 Replies
posted 11 years ago

Auto caching HTML

All methods in my app use $this->layout->content = \View::make('my.view', compact('vars')); t...

0 Likes
0 Replies
posted 11 years ago

White screen and "Error in exception handler" on nginx digital ocean server

That's about it really. This is the first time I've set up LEMP. I've got app/storage set to 777 -R,...

0 Likes
2 Replies

Hierarchial data in a single table

I'm building an app with lots of this kind of data, e.g. jobs. Most have a parent so I've started cr...

0 Likes
3 Replies
replied 11 years ago

How do I do a conditional check of a value from an array to decide the layout?

This expression ($orderData['order']->source == 'Amazon.co.uk') will return a boolean value. If...

0 Likes
replied 11 years ago

Javascript variable within blade statements

Are you trying to pass JS vars into blade functions? This is not possible I'm afraid. If you want to...

0 Likes
Solved
replied 11 years ago

repopulate the field value when edit not work

I've just re-read your question and I missed the real question. This is what I do if(!$form->vali...

0 Likes
replied 11 years ago

repopulate the field value when edit not work

Open your form using Form::model and your $user values will auto populate. {{ Form::model($user, ['a...

0 Likes
replied 11 years ago

Invalid argument supplied for foreach()

First things first, have you dd($show->versions) to see if it does contain any data?

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.