hi iam a new to this laravel framework,em getting error while running contact page.
anyone having idea about this??
the code is:

 <h1>Contact Us.</h1>
 <p>Please contact us by sending a message using the form below:</p>
 {{ Form::open(array('url' => 'contact')) }}
 {{ Form::label('Subject') }}
 {{ Form::text('subject','Enter your subject') }}
 <br />
 {{ Form::label('Message') }}
 {{ Form::textarea('message','Enter your message') }}
 <br />
 {{ Form::submit() }}
{{ Form::close() }}

nd the error is

Whoops, looks like something went wrong.

FatalErrorException in fa87654ff08d1cdfc65c7806e0f765b2ce100dec.php line 4:
Class 'Form' not found

in C:\Users\Administrator\Desktop\learningLaravel\storage\framework\views\fa87654ff08d1cdfc65c7806e0f765b2ce100dec.php line 4

Recommended Answers

All 4 Replies

Member Avatar

Laravel excepton handling is notoriously labarinthine if you're not experienced with it. However, Form class not found sounds bad. Are you loading this from a controller?

tried to update composer..but it dint work for me

problem is solved .
i have just edited composer.json by adding

 "require": {
    "laravelcollective/html": "~5.0"

and addede piece of code config/app.php

to the providers array


 // to the 'aliases' array

  'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.