PHP code example of axn / laravelcollective-form-to-raw-html
1. Go to this page and download the library: Download axn/laravelcollective-form-to-raw-html library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
axn / laravelcollective-form-to-raw-html example snippets
e($value, false)
sh
php artisan laravelcollective-form-to-raw-html:run resources/views/admin/users/create.blade.php
blade
{!! e($value, false) !!}
blade
{{ $value }}
blade
<input
type="text"
name="name[0]"
value="{!! e(old(str_replace(['.', '[]', '[', ']'], ['_', '', '.', ''], 'name['.$index.']')), false) !!}"
>
blade
<input
type="checkbox"
name="name[]"
value="1"
@checked (! old() ? true : in_array('1', (array) old('name')))
>
blade
{!! Form::text('name', null,
array_merge($defaultOptions, [
'size' => 50,
'