signUp(ctx, payload) {
    return new Promise((resolve, reject) => {
      axios
        .post("user/register", payload)
        .then(response => {
          ctx.commit("SET_LOGGEDIN", true);
          resolve(response);
        })
        .catch(error => {
          reject(error);
        });
    });
  }
/**
    // User Register
    # Check If User Register
    # Add Token In Local Storage
    # Change User State Form Flase To True
    # If Not Rregister Return Errors
  **/
User Register
Check If User Register
Add Token In Local Storage
Change User State Form Flase To True
If Not Rregister Return Errors
User Register Check If User Register Add Token In Local Storage Change User State Form Flase To True If Not Rregister Return Errors
signUp(ctx, payload) {
    return new Promise((resolve, reject) => {
      axios
        .post("user/register", payload)
        .then(response => {
          ctx.commit("SET_LOGGEDIN", true);
          resolve(response);
        })
        .catch(error => {
          reject(error);
        });
    });
  }
signUp ( ctx , payload ) { return new Promise ( ( resolve , reject ) => { axios . post ( "user/register" , payload ) . then ( response => { ctx . commit ( "SET_LOGGEDIN" , true ) ; resolve ( response ) ; } ) . catch ( error => { reject ( error ) ; } ) ; } ) ; }
User Register
 Check If User Register
 Add Token In Local Storage
 Change User State Form Flase To True
 If Not Rregister Return Errors
User Register Check If User Register Add Token In Local Storage Change User State Form Flase To True If Not Rregister Return Errors