PHP code example of tomjamon / tailwindlaravel
1. Go to this page and download the library: Download tomjamon/tailwindlaravel 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/ */
tomjamon / tailwindlaravel example snippets
TomJamon\Html\HtmlServiceProvider::class,
'Form' => TomJamon\Html\FormFacade::class,
'Html' => TomJamon\Html\HtmlFacade::class,
{!! Form::control('text', 'name', $errors, [
'label' => 'Nom Prenom',
'placeholder' => 'John Doe',
'md' => '1/2'
]) !!}
{!! Form::control('select', 'type', $errors, [
'label' => 'Type',
'message' => 'Choose wisely the type of object',
'data' => [
'one' => 'First choice',
'two' => 'Second choice',
'three' => 'Third choice'
]
]) !!}
{!! Form::control('textarea', 'content', $errors, [
'label' => 'Content',
'placeholder' => 'Post content',
], [
'rows' => '25'
]) !!}
{!! Form::control('file', 'thumbnail', $errors, [
'label' => 'Your thumbnail',
]) !!}
{!! Form::file('thumbnail') !!}
{!! Form::open(['route' => 'login']) !!}
{!! Form::control('text', 'email', $errors, [...], [...]) !!}
{!! Form::control('password', 'password', $errors, [...]) !!}
{!! Form::control('checkbox', 'remember', $errors, [...], [...]) !!}
{!! Form::submit('Sign in') !!}
{!! Form::close() !!}