0

Was just trying to create a simple form in Laravel Class 'Form' not found in signup.blade.php

This is web.php

Route::get('signup', function ()
{
   return view('signup');
});

This is signup.blade.php

{{ Form::open(array('url' => 'thanks')) }} //Here
   {{Form::label('email','Email Address')}}
   {{Form::text('email')}}

   {{Form::select('os', array(
       'linux' => 'Linux',
       'mac' => 'Mac OS X',
       'windows' => 'Windows'
   ))}}

   {{Form::label('comment','Comments')}}
   {{Form::textarea('comment','', array('placeholder' => 'What are your 
      interests?'))}}

   {{Form::checkbox('agree', 'yes', false)}}
   {{Form::label('agree', 'I agree to your terms of service')}}

   {{Form::submit('signup')}}

{{ Form::close() }}

Have i missed any use or include statements or whats wrong here Thank you!

FF new
  • 113
  • 1
  • 2
  • 11

1 Answers1

0

Install and configure https://laravelcollective.com/docs/5.2/html. Don't forget to add the form alias.

Murwa
  • 2,238
  • 1
  • 20
  • 21