Current Route name ,Section in laravel
Route::currentRouteName() // suppose product route it would be product.create.
section display in template file.
@section('imagerequired','required=required');
section display in template file.
@section('imagerequired','required=required');
<input type="file" class="form-control" @yield('imagerequired') name="image1" id="image1" value="">
output as :
<input type="file" class="form-control" required=required name="image1" id="image1" value="">
Another way.
@section('Form')
<form action="{{route('product.store')}}" method="POST" enctype="multipart/form-data">
@endsection
set in a form
@section('Form')
@show
output as :
<form action="{{route('product.store')}}" method="POST" enctype="multipart/form-data">
Comments
Post a Comment