Category : ionic-framework

i’m trying to place my data which im calling from API to the list which consist of ion-item-divider and below the actual content, i want to sort that data and place into the list according ion-item-divider. below is my code for reference. store.pages.ts getAllStores(){ this.dataservice.getAllStores().subscribe(res=>{ this.data = res; console.log(this.data); }) } store.page.html <ion-content> <ion-grid> <ion-row ..

Read more

I want to use #Laravel_Socialite as an #API for my #ionic app, but sever error keeps displaying. Can anyone know the issue? Im sure the ionic function has something wrong as Im posting nothing in the request Please help. Laravel Functions: public function redirectToFacebook() { $url = Socialite::with(‘facebook’)->stateless()->redirect()->getTargetUrl(); return response()->json([ ‘url’ => $url ], 200); ..

Read more

Can you tell me please how to convert my already working login with social provider function in Laravel to API so I can connect it to my mobile application and log in with Facebook? hit the same laravel’s database: public function handleProviderCallback($provider) { try{ $userinfo = Socialite::driver($provider)->user(); }catch (Exception $e){ return redirect()->intended(‘/’); } Log::debug($userinfo->getId()); $socialProvider ..

Read more

Please guys help me how to integrate my laravel socialite authentication (login with fb or google) with my ionic/angular application. I have it working 100% on my website (Laravel) but now I want to use it as a backend (API) to my frontend (ionic). & in ionic I imported the facebook plugin and it’s returning ..

Read more

enter image description here Im new in Laravel i don’t how to figure out the mistake here is my laravel code: public function login(Request $request) { $gen_user = GenUser::where(‘username’,$request->username)->where(‘confirmed’,0)->first(); if($gen_user){ return response()->json(3);+6 } if($this->auth->attempt($request->only(‘username’,’password’))){ $gen_user = GenUser::join(‘gen_people’,’gen_users.gen_person_id’,’=’,’gen_people.id’) ->where(‘gen_users.id’,Auth::user()->id) ->select([‘gen_people.first_name’,’gen_people.middle_name’,’gen_people.last_name’,’gen_people.first_name’,’gen_users.id’,’gen_users.username’,’gen_users.confirmed’]) ->first(); // dd($gen_user); $gen_user->name = $gen_user->first_name.” “.$gen_user->middle_name.” “.$gen_user->last_name; if($gen_user->confirmed == 1){ return response()->json($gen_user); }elseif($gen_user->confirmed == 2){ ..

Read more