Support the ongoing development of Laravel.io →
Blade Forms
Last updated 2 years ago.
0

can you try using old-school PHP to see if you get the same result?

<?=(isset($guest->name) ? $guest->name : ''); ?>
Last updated 2 years ago.
0

Still not working. I tweaked where things are a little bit. So, what's happening is users search for themselves by email address, and if they're found the form on the next page should be auto populated. Currently I know that the logic that finds the user based on email is working (I'm getting my test user), but I must be messing up in how I'm trying to pass this to the view, and how I'm calling it in the view.

Here is the new controller code that makes the view

public function handleSearch()
	{
		$email = Input::get('email');
		$guest = Guest::whereEmail($email)->get();
		if($guest != null) return View::make('register', $guest);
		return View::make('register');
	}

Does this look right? and if it does, exactly how should I call details from the guest model in the register view?

Thanks

Last updated 2 years ago.
0

Got this figured out. Was working with the returned collection incorrectly.

Thanks for the response!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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.

© 2024 Laravel.io - All rights reserved.