예제 #1
0
    /*$users=Personal::has('user')->with('user');
    	return $users->with('Rol')->get();*/
    /*return User::has('personal')->with('personal','rol')->get();*/
    /*$pers=Personal::first();
    	return $pers->getDates()->createdat;*/
    /*return Ingrediente::with('categoria')->get();*/
    /*return CategoriaIngrediente::with('ingredientes')->get();*/
    /*return Orden::with('platillos')->find(1);*/
    /*return Platillo::with('subcategoria.categoria')->get();*/
    /*return Personal::with('puesto')->get()->where('puesto.nombre','=','Mesero')->get();*/
    /*$posts = Personal::whereHas('puesto', function($q)
    	{
    	    $q->where('nombre', '=', 'Mesero');
    
    	})->get();
    	return $posts;*/
    /*return Venta::whereHas('ordenes', function($q)
    		{
    		    $q->where('status', '=', '1');
    
    		})->with('ordenes')->get();;*/
    /*return Venta::has('ordenes')->get();*/
    /*return Orden::doesntHave('ventas')->where('status','=','1')->with('platillos','personal')->get();*/
    /*return Orden::find('1')->with('platillos')->get();*/
    return Venta::orderBy('id', 'desc')->with('ordenes.platillos')->first();
});
Route::get('wizard', function () {
    /*$ordenes=Orden::with('platillos')->where('status','=','')->get();
    	return view('verOrdenestest',compact('ordenes'));*/
    return view('reportes.corteresumido');
});