lundi 14 novembre 2016

created lumen web service and stuck in it can u help me out?

sorry for asking too easy question but m new to laravel and created a service where user loggedin and displays only that particular user info from database, failed to do so,, can anyone give me solution for it?? here's my controller.... class AuthController extends Controller {
public function login(Request $res) {
try{
$user = Users::get() ->where('user', $res->input('user_name')) ->where('pass', $res->input('pasword')); if($user !="") $user = Users::where('user_id' , $user_id)->get(); else return 'Get lost'; } catch (\Exception $e) { return 'fail'; } }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire