app/Http/Controllers/ConfirmacionQRController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {
        $q = $request->input('busqueda');
        $id_evento = $request->input('id_evento');
        $user = Asistente::leftJoin('asiste_evento', 'asistentes.id', '=', 'asiste_evento.id_asistente')->where( 'llave', '=', $q )->where( 'asiste_evento.id_evento', '=', $id_evento )->get();
        return $user;
    }
public function index ( Request $ request ) { $ q = $ request -> input ( 'busqueda' ) ; $ id_evento = $ request -> input ( 'id_evento' ) ; $ user = Asistente :: leftJoin ( 'asiste_evento' , 'asistentes.id' , '=' , 'asiste_evento.id_asistente' ) -> where ( 'llave' , '=' , $ q ) -> where ( 'asiste_evento.id_evento' , '=' , $ id_evento ) -> get ( ) ; return $ user ; }
Display a listing of the resource.
Display a listing of the resource .