app/Http/Controllers/CertificadoController.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('search');
        $id_evento = $request->input('id_evento');
        $user = Asistente::leftJoin('asiste_evento', 'asistentes.id', '=', 'asiste_evento.id_asistente')->where( 'asistentes.ingreso', '=', '1' )->where( 'asiste_evento.id_evento', '=', $id_evento )->orderBy('asistentes.id', 'desc')->get ();
        return $user;
    }
public function index ( Request $ request ) { $ q = $ request -> input ( 'search' ) ; $ id_evento = $ request -> input ( 'id_evento' ) ; $ user = Asistente :: leftJoin ( 'asiste_evento' , 'asistentes.id' , '=' , 'asiste_evento.id_asistente' ) -> where ( 'asistentes.ingreso' , '=' , '1' ) -> where ( 'asiste_evento.id_evento' , '=' , $ id_evento ) -> orderBy ( 'asistentes.id' , 'desc' ) -> get ( ) ; return $ user ; }
Display a listing of the resource.
Display a listing of the resource .