Package Data | |
---|---|
Maintainer Username: | zizohassan |
Maintainer Contact: | admin@5dmat-web.com (5dmatweb Team) |
Package Create Date: | 2017-03-02 |
Package Last Update: | 2017-03-03 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-04-15 15:07:11 |
Package Statistics | |
---|---|
Total Downloads: | 1,551 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 2 |
Ajax Register with laravel
#install
composer require 5dmatwebregister/ajaxregister:dev-master
#add provider
AjaxRegister\AjaxRegisterProvider\AjaxRegisterProvider::class,
#Authentication scaffolding
add this line to terminal
php artisan make:auth
#vendor publish
php artisan vendor:publish --tag=5dmatweb --force
#Start Now
now start your project and enjoy login with ajax
php artisan serve
#How to use
var AR = new AjaxRegister({
form:'form',
error:"error",
input:[ [name , required] , email ],
doneUrl:"/home"
});
form = the form id you must set id to the register form erorr = the id of div we will show errors on it input = array of input that we will take values if this input required just put in sub array like this ['name' , 'required'] if input optional just put his name like this 'email' do not worry about this point we set the input for you doneUrl = the url we will redirect user after register
example
var AR = new AjaxRegister({
form:'form',
error:"error",
input:[
['name' ,'required'] , ///required
['email','required'] ,///required
['password','required'] ,///required
['password-confirm','required'] ,///required
['_token','required'],///required
'age' ///optional
],
doneUrl:"/home"
});
#Methods
#Done Register
AR.doneRegister = function(){
}
#error Register
AR.errorRegister = function(){
}