Laravel Tutorials
- What is laravel
- Laravel Installation
- Directory Structure
- htaccess
- Remove public from url
- Artisan Command
- Laravel Configuration
- Routing Configuration
- Namespaces
- Request
- Response
- Controller
- Model
- User Authentication
- Multi User Authentication
- Database Seeding
- Database
- Database Query
- ORM
- One-to-One Relationship
- One-to-Many Relationship
- Many to Many Eloquent Relationship
- Has One Through
- Has Many Through
- Querying Relations
- Middleware
- Laravel Views
- Blade Views
- Print data on view page
- Get Site URL
- Get URL Segment
- Get images from Storage folder
- Clear cache
- Form Class not found
- Flash Message in laravel
- Redirections
- path
- CRUD Projerct
- CRUD in Laravel
- CRUD progran
- Laravel Validation
- Jquery Validation
- Cookie
- Session
- Email Send in laravel
- File uploading
- CSRF Protection
- Helper in Laravel
- Helper Functions
- Guzzle Http Client
- Paypal Payment Gatway Integration
- Cron Job in laravel
- Flash message
- path
- Errors Handling
- Date Format
- Date Format Validation
- Display Image on View Page
- Update User Status using toggle button
- Delete Multiple Records using Checkbox in Laravel?
- Confirmation Before Delete Record
- Delete image from storage
- Remove/Trim Empty & Whitespace From Input Requests
- Block IP Addresses from Accessing Website
- How to Disable New User Registration in Laravel
- Redirect HTTP To HTTPS Using Laravel Middleware
- CKEditor
- slug generate unique
- Prevent Browser's Back Button After Logout
- Datatable dunamically
- encrypt & Decript
- Download File
- Rest API
- Shopping Cart
- Shopping Cart Example
- Dynamic Category-Subcategory Menu
- Ajax Search
- Interview Question
- laravel Tutorilal link
- laravel Tutorilal
Important Links
What is Form class not Found in Laravel?
laravelcollective/html is provide very easy way to use html textbox, select box, radio button, checkbox etc with laravel. They provide several method to use those input fields.
Solution for Laravel 6
composer require laravelcollective/html
Solution for Laravel 5.6
File name : index.php
composer require "laravelcollective/html":"^5.8"
composer require "laravelcollective/html":"^6"
In app.php file
'providers' => [
Collective\Html\HtmlServiceProvider::class,
],
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],
How to use Form open in laravel
File name : index.php
{!! Form::open( [ 'action' => url( '/login_validate' ), 'method' => 'post', 'files' => true ] ) !!}
// Your form body
{!! Form::close() !!}
How to use Form open in laravel
File name : index.php
{{ Form::open(array('url' => 'add_category','files' => true, 'method'=>'post')) }}
// Your form body
{!! Form::close() !!}
Note : bydefault method="post" in form open
How to use Form open in laravel
File name : index.php
{!! Form::open(['url'=>'add_category', 'files' => true]) !!}
{!! Form::close() !!}
How to use Form open in laravel
You may also open forms that point to named routes or controller actions:
File name : index.php
echo Form::open(array('route' => 'route.name'))
echo Form::open(array('action' => 'Controller@method'))
You may pass in route parameters
echo Form::open(array('route' => array('route.name', $user->id)))
echo Form::open(array('action' => array('Controller@method', $user->id)))
Another Way :-
{{ Form::open(array('route' => array('user.show', $user->id))) }}
with class name
{{ Form::open(array('route' => array('user.show', $user->id), 'class' => 'section-top')) }}
with class name
{{ Form::open(array('route' => array('user.show', $user->id), 'class' => 'section-top')) }}