Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sanjab-persian-date-picker
Advanced tools
Persian date picker for laravel sanjab (https://github.com/sanjabteam/sanjab)
Before start make sure you know how laravel mix works!
Install npm packages including laravel mix.
npm install
Install the sanjab npm package.
npm install sanjab --save-dev
Install sanjab Persian Date picker via npm.
npm install sanjab-persian-date-picker --save-dev
You should install the same version of the composer package if you don't have latest version.
npm install sanjab@VERSION --save-dev
Install sanjab Persian Date picker via composer.
composer require sanjabteam/sanjab-persian-date-picker
Create sanjab JS for custom compile if not created before.
resources/js/sanjab.js
:
require('sanjab');
Vue.use(require('sanjab-persian-date-picker').default); // Add this to support persian date picker
if (document.querySelector('#sanjab_app')) {
window.sanjabApp = new Vue({
el: '#sanjab_app',
});
}
add js file to webpack.mix.js
for compile.
mix.js('resources/js/sanjab.js', 'public/vendor/sanjab/js')
Compile and you are ready.
npm run prod
use SanjabPersianDatePicker\PersianDatePickerWidget;
// Date only
$this->widgets[] = PersianDatePickerWidget::create('birth_date')
->rules('jdate_before:'.verta()->formatDate())
->required();
// Date and time
$this->widgets[] = PersianDatePickerWidget::create('released_at')
->rules('jdate_before:'.verta()->formatDate())
->required()
->time(true);
The MIT License (MIT). Please see License File for more information.
FAQs
Persian date picker for laravel sanjab (https://github.com/sanjabteam/sanjab)
We found that sanjab-persian-date-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.