2017 © Pedro Peláez
 

package ajaxregister

Ajax Register for laravel ...

image

5dmatwebregister/ajaxregister

Ajax Register for laravel ...

  • Friday, March 3, 2017
  • by zizohassan
  • Repository
  • 2 Watchers
  • 6 Stars
  • 649 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

laravel-ajax-register

Ajax Register with laravel, (*1)

install

composer require 5dmatwebregister/ajaxregister:dev-master

add provider

AjaxRegister\AjaxRegisterProvider\AjaxRegisterProvider::class,, (*2)

Authentication scaffolding

add this line to terminal, (*3)

php artisan make:auth

#vendor publish php artisan vendor:publish --tag=5dmatweb --force, (*4)

Start Now

now start your project and enjoy login with ajax, (*5)

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
, (*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"
        });

Methods

Done Register

AR.doneRegister = function(){

}

error Register

AR.errorRegister = function(){

}

The Versions

03/03 2017

dev-master

9999999-dev

Ajax Register for laravel ...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

laravel javascript ajax register