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

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.

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?


Last updated 2 years ago.

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

Thanks for the response!

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.