TechNotes
Colab
Machine Learning
Neural Network
Python
What Is Emotions?
Are you sure that you got it right?
Friday, June 9, 2023
[php][laravel][web] autogenerate BootStrap form [blade]
create laravel project
composer create-project --prefer-dist laravel/laravel app
install bgaze package
composer require bgaze/bootstrap-form
publish package as a service provider
php artisan vendor:publish --provider="Bgaze\BootstrapForm\BootstrapFormServiceProvider"
replace the welcome.blade.php file
Laravel
Login
@open(['url' => '/my/url', 'novalidate' => true]) @text('username') @password('password') @checkbox('remember_me', null, 1, null, ['switch' => true, 'inline' => true]) @submit('Login') @close
the @... codes will be translated into the following html form components:
Login
Username
Password
Remember me
ref:
https://packages.bgaze.fr/bootstrap-form
https://github.com/bgaze/bootstrap-form
further:
https://www.laravelia.com/post/how-to-use-collective-form-in-laravel-9-application
https://splade.dev/
https://laravel-bootstrap-components.com/
https://twillcms.com/welcome.html
https://spatie.be/docs/laravel-html/v3/introduction
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment