how to implement restapi in laravel and its working

Stack Overflow Asked by Kulweet_kumar on December 16, 2021

My code is given below. I am facing problem. When I want check by username and password. password change every time. so I am unable to give result by email password.

public function login() { 
     $data = Input::all(); 
     $email= $data['email'];

One Answer

try this way.

use Request;

public function login(Request $request) { 
$data = $request->all(); 
$email= $data['email'];

Answered by Akash Kumar Verma on December 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP