php


Trying to create a view in laravel


Here's what I want to do: A simple blade view with a form in it where I can post images to test an app function.
So, here's what I've done...
In resources/views/ImageControllerTest.blade.php:
<html>
<body>
{{Form::open(array('route'=>'image.store'))}}
{{Form::close()}}
</body>
</html>
In routes/web.php:
Route::get('/formtest', function () {
return view('ImageControllerTest');
});
In my browser, I go to http://localhost:8000/formtest and I get this error:
FatalErrorException in ac777a228fac6b0e4c0e9981973de27c8907364b.php line 3:
Class 'Form' not found
in ac777a228fac6b0e4c0e9981973de27c8907364b.php line 3
What am I doing wrong?
the Form has been deprecated since Laravel 5, I believe. In order to continue using this syntax you'll have to download this package
Or just use plain html
<form action="/images" method="POST">
</form>
The form is now and external package. You will have to include via composer.
composer require "laravelcollective/html":"^5.3.0"
Add to providers array
Collective\Html\HtmlServiceProvider::class,
Add to aliases array
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
Follow instructions here: https://laravelcollective.com/docs/5.3/html

Related Links

Paypal IPN response on specific port
INSERT INTO wrong syntax with keyword named columns
I Want to Get Total Number of days in every month in a current year. what function I have to use in php
Symfony3 class inheritance and db relationships
PHP preg_match regular expression for find date in string
Fill value into $arrayA, if same key exists in $arrayB
Best way to add a space when joining values
Connect Laravel App to Android
How to create an array from a CSV file using PHP but NOT using fgetcsv
Can't load RSS XML with namespace
PHP adding <Head> files into <Body> [closed]
How do I display a <p> on screen when the user clicks
parse error in zend module.config.php line 78
Function executing order in an if statement php
extremely SLOW Nginx download over ssl
How to make possible dynamically add 'active' class to current page in wordpress

Categories

HOME
python-2.7
openshift
firebase
automapper
adfs3.0
compilation
activemq
qooxdoo
video-streaming
openfoam
polymer-2.x
roku
clickable-image
buffer
pm2
stimulsoft
complexity-theory
squid
heap-dump
closures
vertica
asciimath
cloudsim
http-authentication
renderscript
adminlte
pe
yii2-basic-app
qa
candlestick-chart
sybase-ase
software-packaging
vuforia
dragula
region
amazon-iam
mongodb-3.4
reporting
serversocket
assertions
aurelia-http-client
hidden-markov-models
iscroll
task-parallel-library
right-click
fiware-wirecloud
daz3d
head.js
exc-bad-access
case-when
ltrace
cocoa-bindings
haraka
ternary-operator
bigdecimal
pyaudio
jsf-2.3
tsqlt
groovyfx
maximize
jeditable
textblock
gulp-uglify
gravatar
vim-plugin
flask-security
cryptojs
android-mapview
self
python-c-extension
ssmtp
ildasm
adwords-apiv201402
producer
ecos
loginview
hyperloglog
thruway
fileshare
nodeload
air-native-extension
ivalueconverter
boolean-algebra
jms-serializer
map
jmenubar
pbkdf2
postgres-xc
hints
jquery-lazyload
days
jquery-cycle
instance-variables
uipangesturerecognizer
nsfont
firefly-mv
sql-parametrized-query
rtd
tablet-pc
simile
channelfactory
jdownloader
explicit
tabbarcontroller
.net-services
bucket
source-code-protection
efs
synthesizer

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App