Skip to content

mPhpMaster/laravel-form-submit-shortcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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