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!

Related Questions

Why does points.sort(function(a, b){return a-b}); return -1, 0 or 1?

6  Asked on November 4, 2021 by camarellini-viberg


To add new row in gridview using javascript

2  Asked on November 4, 2021


python extract uncompressed data from 7z-file

2  Asked on November 4, 2021 by user3820991


JMeter get the latest file / contents from SFTP folder

1  Asked on November 4, 2021 by javaman


Pulling Data automatically, and keeping it Dynamic

1  Asked on November 4, 2021 by andrew-ferro


Dynamically consolidate columns into one column with a list of values

2  Asked on November 4, 2021 by simon-watson-sjw


Validity unknown symbol is not being displayed on PDF

1  Asked on November 4, 2021 by divya-agrawal


Use type that isn’t exported

1  Asked on November 4, 2021


how to return 0 if no rows

4  Asked on November 4, 2021


error installing laravel via composer on new pc

1  Asked on November 4, 2021 by hretic


The Data Flows Down in React.js

2  Asked on November 4, 2021 by fahd-dev


Ask a Question

Get help from others!

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