dev-master
9999999-devAjax Register for laravel ...
MIT
The Requires
- php >=5.4.0
laravel javascript ajax register
Ajax Register for laravel ...
Ajax Register with laravel, (*1)
composer require 5dmatwebregister/ajaxregister:dev-master
AjaxRegister\AjaxRegisterProvider\AjaxRegisterProvider::class,
, (*2)
add this line to terminal, (*3)
php artisan make:auth
#vendor publish
php artisan vendor:publish --tag=5dmatweb --force
, (*4)
now start your project and enjoy login with ajax, (*5)
php artisan serve
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
, (*6)
example, (*7)
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" });
AR.doneRegister = function(){ }
AR.errorRegister = function(){ }
Ajax Register for laravel ...
MIT
laravel javascript ajax register