Looking to hire Laravel developers? Try LaraJobs

laravel-form-submit-shortcut maintained by mphpmaster

Description
Laravel form submit shortcut package.
Author
Last update
2023/12/20 00:42 (dev-main)
License
Links
Downloads
9
Tags

Comments
comments powered by Disqus

Laravel form submit shortcut package.

Dependencies:

  • 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

Installation:

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"

Usage:

Laravel Nova (4+):

No need to add anything. Just edit the config as you like.

Laravel:

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.

License

The Laravel framework is open-sourced software licensed under the MIT license.

This Helper is open-sourced software licensed under the MIT license.


Stand with Palestine 🇵🇸 #FreePalestine