- php >=8.1 REQUIRED IN YOUR PROJECT
- laravel >=9 REQUIRED IN YOUR PROJECT
- illuminate/support >=9 composer will install it automaticly
- laravel/helpers ^1.5 composer will install it automaticly
composer require mphpmaster/laravel-form-submit-shortcut
You can publish the config file with:
php artisan vendor:publish --tag="form-submit-shortcut-config"
This is the contents of the published config file:
return [
// accepts empty|string
'key' => 'ctrl+s',
];
You can publish the js file to public/js
with:
php artisan vendor:publish --tag="form-submit-shortcut-js"
No need to add anything. Just edit the config as you like.
You need to add the script tag to your front code:
<script src="{{url('js/formSubmitShortcut.js')}}"></script>
Important: Do not forget to modify the config.
The Laravel framework is open-sourced software licensed under the MIT license.
This Helper is open-sourced software licensed under the MIT license.