0

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

@extends('layout')
@section('content')
 <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() }}
 @stop

nd the error is

Whoops, looks like something went wrong.

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

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

2
Contributors
4
Replies
19
Views
1 Year
Discussion Span
Last Post by shashigowda
0

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?

0

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

Collective\Html\HtmlServiceProvider::class,



 // to the 'aliases' array


  'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.