{"size": 741, "ext": "js", "max_stars_repo_path": "resources/assets/js/store/index.js", "max_stars_repo_name": "myr-lab/laravel-vue-js-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/assets/js/store/index.js", "max_issues_repo_name": "myr-lab/laravel-vue-js-app", "max_issues_repo_issues_event_min_datetime": "2021-03-10T04:21:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T22:28:24.000Z", "max_forks_repo_path": "resources/assets/js/store/index.js", "max_forks_repo_name": "myr-lab/laravel-vue-js-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 16.4666666667, "max_line_length": 108, "alphanum_fraction": 0.4588394062}
export default {

	state: {  
    category: []
	},

	getters: {

      getCategoryFormGetters(state){ //take parameter state

          return state.category
       }
     
	},

	actions: {
       allCategoryFromDatabase(context){

          axios.get("api/category")

               .then((response)=>{

                  console.log(response.data.category)

                  context.commit("categories",response.data.category) //categories will be run from mutation

               })

               .catch(()=>{
                  
                  console.log("Error........")
                  
               })
       }
	},

	mutations: {
    
    categories(state,data) {
      
          return state.category = data
      }

	}
}